defineAll method
Define all keys from map
, where map values can be a instantiator
functions or a list with 2 values
(instantiator and cache-validator functions).
Implementation
void defineAll(Map<String, dynamic> map) {
for (var entry in map.entries) {
_define(entry.key, entry.value);
}
}