DirectBoolLens class
A boolean lens backed by explicitly provided getter and setter functions.
Constructors
-
DirectBoolLens({required Getter<
bool> get, required Setter<bool> set}) - A boolean lens backed by explicitly provided getter and setter functions.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
get(
) → bool -
Returns the value managed by this lens.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
bool value) → void -
Sets the value managed by this lens.
inherited
-
toggle(
) → void -
Toggles the value of this lens.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited