EmpireNullableBoolProperty class
An EmpireProperty with similar characteristics as a an ordinary dart bool object.
Then underlying bool value CAN be null
When the value of this changes, it will send a EmpireStateChanged event by default. This includes automatically triggering a UI rebuild.
- Inheritance
-
- Object
- EmpireProperty<
bool?> - EmpireNullableBoolProperty
Constructors
- EmpireNullableBoolProperty({bool? value, String? propertyName})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFalse → bool
-
Whether the underlying value is not null and false
no setter
- isNotNull → bool
-
Returns true if the value of this is not null.
no setterinherited
- isNull → bool
-
Returns true if the value of this is null.
no setterinherited
- isTrue → bool
-
Whether the underlying value is not null and true
no setter
- originalValue → bool?
-
no setterinherited
- propertyName ↔ String?
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → bool?
-
no setterinherited
- viewModel → EmpireViewModel
-
Returns the instance of the EmpireViewModel this
property is associated with.
no setterinherited
Methods
-
call(
bool? value, {bool notifyChange = true, bool setAsOriginal = false}) → void -
Updates the underlying
value
for this EmpireProperty.inherited -
equals(
dynamic other) → bool -
Checks if
other
is equal to the value of this EmpirePropertyinherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
{bool notifyChange = true}) → void -
Resets the value to the originalValue.
inherited
-
set(
bool? value, {bool notifyChange = true, bool setAsOriginal = false}) → bool? -
Updates the property value. Notifies any listeners to the change
inherited
-
setFalse(
{bool notifyChange = true}) → void - Sets the value to false
-
setNull(
{bool notifyChange = true}) → void - Sets the value to null
-
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
-
setViewModel(
EmpireViewModel viewModel) → void -
Links this EmpireProperty instance with an EmpireViewModel.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator.
inherited