createMapProperty<K, V> method
Null safety
Short hand helper function for initializing an EmpireMapProperty.
See EmpireProperty for propertyName
usages.
Example
late final EmpireMapProperty planet;
planet = createMapProperty<String, dynamic>({'name': 'Earth', 'population': 8000000000});
Implementation
EmpireMapProperty<K, V> createMapProperty<K, V>(Map<K, V> values,
{String? propertyName}) {
return EmpireMapProperty(values, this, propertyName: propertyName);
}