registry method
Implementation
VoidCallback registry(K key, V value) {
assert(key != null, 'key must not be null.');
assert(value != null, 'value must not be null.');
_maps[key] = value;
return () {
_maps.remove(key);
};
}
VoidCallback registry(K key, V value) {
assert(key != null, 'key must not be null.');
assert(value != null, 'value must not be null.');
_maps[key] = value;
return () {
_maps.remove(key);
};
}