StateExtension<X extends StatefulWidget> extension
- on
-
- State<
X>
- State<
Methods
-
changeModel<
T> (Symbol key, T value) → void -
Available on State<
Change the data of the model with the given key. Throws an assertion error if the model is read-only.X> , provided by the StateExtension extension -
find<
T> () → T -
Available on State<
Find the data of the given type from the context. Does not listen to the data changes.X> , provided by the StateExtension extension -
findMessenger<
T> () → T -
Available on State<
Find the stored data somewhere in the ancestor DataMessenger descendants. Throws an assertion error if the data is not found.X> , provided by the StateExtension extension -
findModel<
T> (Symbol key) → T -
Available on State<
Find the data of the given type from the context. Throws an assertion error if the data is not found.X> , provided by the StateExtension extension -
findProperty<
T> (Symbol key) → ModelProperty< T> -
Available on State<
Find the property of the given type from the context. Throws an assertion error if the data is not found.X> , provided by the StateExtension extension -
findRoot<
T> () → T -
Available on State<
Find the root data of the given type from the context. Throws an assertion error if the data is not found.X> , provided by the StateExtension extension -
maybeChangeModel<
T> (Symbol key, T value) → void -
Available on State<
Optionally change the data of the model with the given key. Ignores if the model is read-only.X> , provided by the StateExtension extension -
maybeFind<
T> () → T? -
Available on State<
Optionally find the data of the given type from the context.X> , provided by the StateExtension extension -
maybeFindMessenger<
T> () → T? -
Available on State<
Find the DataMessenger that holds all of the data with the given type from the context.X> , provided by the StateExtension extension -
maybeFindModel<
T> (Symbol key) → T? -
Available on State<
Optionally find the data of the given type from the context. Returns null if the data is not found.X> , provided by the StateExtension extension -
maybeFindProperty<
T> (Symbol key) → ModelProperty< T> ? -
Available on State<
Optionally find the property of the given type from the context. Returns null if the data is not found.X> , provided by the StateExtension extension -
maybeFindRoot<
T> () → T? -
Available on State<
Optionally find the root data of the given type from the context.X> , provided by the StateExtension extension -
maybeModel<
T> (Symbol key) → T? -
Available on State<
Optionally find the data of the given type from the context. Returns null if the data is not found.X> , provided by the StateExtension extension -
maybeOf<
T> () → T? -
Available on State<
Optionally find and listen to data changes of the data with the given type from the context.X> , provided by the StateExtension extension -
maybeProperty<
T> (Symbol key) → ModelProperty< T> ? -
Available on State<
Optionally find and listen to property changes of the data with the given type from the context. Returns null if the data is not found.X> , provided by the StateExtension extension -
model<
T> (Symbol key) → T -
Available on State<
Find the data of the given type from the context. Throws an assertion error if the data is not found.X> , provided by the StateExtension extension -
of<
T> () → T -
Available on State<
Find and listen to data changes of the data with the given type from the context.X> , provided by the StateExtension extension -
property<
T> (Symbol key) → ModelProperty< T> -
Available on State<
Find and listen to property changes of the data with the given type from the context. Throws an assertion error if the data is not found.X> , provided by the StateExtension extension