scoped_model library


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. [...]


ScopedModelDescendantBuilder<T extends Model> = Widget Function(BuildContext context, Widget child, T model)
Builds a child for a ScopedModelDescendant.

Exceptions / Errors

The error that will be thrown if the ScopedModel cannot be found in the Widget tree.