flutter_observable_locator library Null safety

Classes

BindInherited<T>
BindMultipleInherited
Binds multiple inherited widgets to the surrounding ObservableLocatorScope. The values of these observables can be created and updated by relying on Flutter's InheritedWidget reactivity system.
BindValue<T>
ObservableLocatorScope
A scope that provides an ObservableLocator to its widget subtree.
UpdateBuilder<T>

Mixins

LocatorReactionStateMixin<T extends StatefulWidget>
Convenience mixin that provides MobX reaction functions which can rely on the surrounding ObservableLocatorScope.

Extensions

ObservableContextExtensions
Extensions on the context to easily observe a value from the nearest surrounding ObservableLocatorScope.

Typedefs

CreateBinders = Iterable<Binder> Function()
Init<T> = T Function()
LocatorAutorunFn = void Function(Reaction reaction, ObservableLocator locator)
LocatorReactionFn<T> = T Function(Reaction reaction, ObservableLocator locator)
OnError = void Function(Object, Reaction)
ReactionEffect<T> = void Function(T value)
Update<T> = T Function(BuildContext context)