clear method Null safety
Removes all objects from this list; the length of the list becomes zero.
The list must be growable.
Implementation
void clear();
Removes all objects from this list; the length of the list becomes zero.
The list must be growable.
void clear();