createEmptyMapProperty<K, V> method Null safety

EmpireMapProperty<K, V> createEmptyMapProperty<K, V>(
  1. {String? propertyName}
)

Short hand helper function for initializing an empty EmpireMapProperty.

See EmpireProperty for propertyName usages.

Example

late final EmpireMapProperty planet;

planet = createEmptyMapProperty();

Implementation

EmpireMapProperty<K, V> createEmptyMapProperty<K, V>({String? propertyName}) {
  return EmpireMapProperty(<K, V>{}, this, propertyName: propertyName);
}