createBoolProperty method Null safety

EmpireBoolProperty createBoolProperty(
  1. bool value,
  2. {String? propertyName}
)

Short hand helper function for initializing an EmpireBoolProperty.

See EmpireProperty for propertyName usages.

Example

late final EmpireBoolProperty isAwesome;

isAwesome = createBoolProperty(true);

Implementation

EmpireBoolProperty createBoolProperty(bool value, {String? propertyName}) {
  return EmpireBoolProperty(value, this, propertyName: propertyName);
}