StrongStateReference<T, Child extends State<T> > class
final
A reference to a State object.
StrongStateReference are functionally the same as providing a direct reference to the State itself.
- Implemented types
-
- StateReference<
Child>
- StateReference<
Constructors
- StrongStateReference({required Child state, void onDereference()?})
-
A reference to a State object.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onDereference → void Function()?
-
A lifecycle hook called when the State is dereferenced.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → Child
-
A handle to the State.
final
Methods
-
call(
) → Child? -
A handle that may or may not return the State.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited