EmpireNullableIntProperty.zero constructor

EmpireNullableIntProperty.zero({
  1. String? propertyName,
})

Factory constructor for initializing an EmpireNullableIntProperty to zero.

See EmpireProperty for propertyName usages.

Example

final numberOfFriends = EmpireNullableIntProperty.zero();

Implementation

factory EmpireNullableIntProperty.zero({String? propertyName}) {
  return EmpireNullableIntProperty(value: 0, propertyName: propertyName);
}