clear method Null safety
- @override
Removes all objects from this list; the length of the list becomes zero.
The list must be growable.
Implementation
@override
void clear() {
if (length > 0) {
// Stop listening to children
_stopPropagateNotification();
_values.clear();
notifyListeners();
}
}