createIntProperty method Null safety

EmpireIntProperty createIntProperty(
  1. int value,
  2. {String? propertyName}
)

Short hand helper function for initializing an EmpireIntProperty.

See EmpireProperty for propertyName usages.

Example

late final EmpireIntProperty age;

age = createIntProperty(20);

Implementation

EmpireIntProperty createIntProperty(int value, {String? propertyName}) {
  return EmpireIntProperty(value, this, propertyName: propertyName);
}