EmpireBoolProperty class Null safety

An EmpireProperty with similar characteristics as a an ordinary dart bool object

Then underlying bool value cannot be null

When the value of this changes, it will send a EmpireStateChanged event by default. This includes automatically triggering a UI rebuild.

Inheritance

Constructors

EmpireBoolProperty(bool value, EmpireViewModel viewModel, {String? propertyName})

Properties

hashCode int
The hash code for this object.
read-only, inherited
isFalse bool
Whether the underlying value is false
read-only
isNotNull bool
read-only, inherited
isNull bool
read-only, inherited
isTrue bool
Whether the underlying value is true
read-only
originalValue bool
read-only, inherited
propertyName String?
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
value bool
read-only, inherited

Methods

call(bool value, {bool notifyChange = true}) → void
inherited
equals(dynamic other) bool
Checks if other is equal to the value of this EmpireProperty
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
reset({bool notifyChange = true}) → void
Resets the value to what it was initialized with.
inherited
set(bool value, {bool notifyChange = true}) bool
Updates the property value. Notifies any listeners to the change
inherited
setFalse({bool notifyChange = true}) → void
Sets the value to false
setOriginalValueToCurrent() → void
Updates the original value to what the current value of this property is.
inherited
setTrue({bool notifyChange = true}) → void
Sets the value to true
toString() String
A string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator.
inherited