ObservableLocatorScope constructor
ObservableLocatorScope({
- Key? key,
- required CreateBinders create,
- TransitionBuilder? builder,
- Widget? child,
Create a scope that provides an ObservableLocator
which is managed (i.e.
created and disposed) by this widget.
Binders for the locator are created once on init using the provided
create
callback.
This should typically be used as a root scope and must not shadow an ancestor observable locator scope.
Implementation
factory ObservableLocatorScope({
Key? key,
required CreateBinders create,
TransitionBuilder? builder,
Widget? child,
}) =>
_ManagedObservableLocatorScope(
key: key,
create: create,
builder: builder,
child: child,
);