Complete the code to create a list of strings named fruits.
List<String> fruits = [1];In Dart, lists are created using square brackets [].
Complete the code to access the value for key 'name' in the map.
Map<String, String> person = {"name": "Alice", "city": "Paris"};
String name = person[1];To get a value from a map by key, use square brackets with the key as a string.
Fix the error in the code to add an item to the set.
Set<int> numbers = {1, 2, 3};
numbers[1](4);Sets use the add() method to add new items.
Fill both blanks to create a map from a list of keys and a list of values.
List<String> keys = ["a", "b", "c"]; List<int> values = [1, 2, 3]; Map<String, int> map = Map.fromIterables([1], [2]);
Map.fromIterables takes two iterables: one for keys and one for values.
Fill all three blanks to create a set from a list and add a new item.
List<int> nums = [1, 2, 3]; Set<int> numSet = [1](nums); numSet.[2](4); bool hasFour = numSet.[3](4);
Use Set.from to create a set from a list, add() to add an item, and contains to check membership.
