clear abstract method
Removes all entries from the map.
After this, the map is empty.
final planets = <int, String>{1: 'Mercury', 2: 'Venus', 3: 'Earth'};
planets.clear(); // {}
Implementation
void clear();
Content-Length: 9822 | pFad | https://api.dart.dev/dart-js/../dart-js/JsObject/../../dart-collection/../dart-core/Map/clear.html
Removes all entries from the map.
After this, the map is empty.
final planets = <int, String>{1: 'Mercury', 2: 'Venus', 3: 'Earth'};
planets.clear(); // {}
void clear();
Fetched URL: https://api.dart.dev/dart-js/../dart-js/JsObject/../../dart-collection/../dart-core/Map/clear.html
Alternative Proxies: