clear method Null safety
Removes all items from the list.
Implementation
void clear() {
_isDirty = false;
_list.clear();
_set.clear();
}
Removes all items from the list.
void clear() {
_isDirty = false;
_list.clear();
_set.clear();
}