clear method
Removes all entries from the map.
Clears all key-value pairs and notifies subscribers of the change.
Implementation
@override
void clear() {
if (peek.isEmpty) {
return;
} else {
peek.clear();
notify(true);
}
}
Removes all entries from the map.
Clears all key-value pairs and notifies subscribers of the change.
@override
void clear() {
if (peek.isEmpty) {
return;
} else {
peek.clear();
notify(true);
}
}