createNullableIntProperty method Null safety

EmpireNullableIntProperty createNullableIntProperty(
  1. {int? value,
  2. String? propertyName}
)

Short hand helper function for initializing an EmpireNullableIntProperty.

See EmpireProperty for propertyName usages.

Example

late final EmpireNullableIntProperty age;

age = createNullableIntProperty();

Implementation

EmpireNullableIntProperty createNullableIntProperty(
    {int? value, String? propertyName}) {
  return EmpireNullableIntProperty(value, this, propertyName: propertyName);
}