createNullableBoolProperty method Null safety

EmpireNullableBoolProperty createNullableBoolProperty(
  1. {bool? value,
  2. String? propertyName}
)

Short hand helper function for initializing an EmpireNullableBoolProperty.

See EmpireProperty for propertyName usages.

Example

late final EmpireNullableBoolProperty isAwesome;

isAwesome = createNullableBoolProperty();

Implementation

EmpireNullableBoolProperty createNullableBoolProperty(
    {bool? value, String? propertyName}) {
  return EmpireNullableBoolProperty(value, this, propertyName: propertyName);
}