scoped_model library
Classes
- Model
- A base class that holds some data and allows other classes to listen to changes to that data.
-
ModelFinder<
T extends Model> - Finds a Model. Deprecated: Use ScopedModel.of instead.
-
ScopedModel<
T extends Model> - Provides a Model to all descendants of this Widget.
-
ScopedModelDescendant<
T extends Model> - Finds a specific Model provided by a ScopedModel Widget and rebuilds whenever the Model changes.
Typedefs
-
ScopedModelDescendantBuilder<
T extends Model> = Widget Function(BuildContext context, Widget? child, T model) - Builds a child for a ScopedModelDescendant.
Exceptions / Errors
- ScopedModelError
- The error that will be thrown if the ScopedModel cannot be found in the Widget tree.