createNullableStringProperty method Null safety

EmpireNullableStringProperty createNullableStringProperty(
  1. {String? value,
  2. String? propertyName}
)

Short hand helper function for initializing an EmpireNullableStringProperty.

See EmpireProperty for propertyName usages.

Example

late final EmpireNullableStringProperty name;

name = createNullableStringProperty();

Implementation

EmpireNullableStringProperty createNullableStringProperty(
    {String? value, String? propertyName}) {
  return EmpireNullableStringProperty(value, this,
      propertyName: propertyName);
}