createNullableDoubleProperty method Null safety

EmpireNullableDoubleProperty createNullableDoubleProperty(
  1. {double? value,
  2. String? propertyName}
)

Short hand helper function for initializing an EmpireNullableDoubleProperty.

See EmpireProperty for propertyName usages.

Example

late final EmpireNullableDoubleProperty percentage;

percentage = createNullableDoubleProperty();

Implementation

EmpireNullableDoubleProperty createNullableDoubleProperty(
    {double? value, String? propertyName}) {
  return EmpireNullableDoubleProperty(value, this,
      propertyName: propertyName);
}