Intermediate Flutter
Q75 / 100

What is the spread operator (...) used for in Dart?

Correct! Well done.

Incorrect.

The correct answer is B) Inserting all elements of a collection into another collection literal

B

Correct Answer

Inserting all elements of a collection into another collection literal

Explanation

The spread operator (...) inserts all elements of a List, Set, or Map into another collection literal. Example: [...list1, ...list2]. The null-aware spread (...?) safely handles nullable collections.

Progress
75/100