state_notifier library

Classes

StateNotifier<T>
An observable class that stores a single immutable state. [...]

Mixins

LocatorMixin
A mixin that adds service location capability to an object. [...]

Typedefs

ErrorListener(dynamic error, StackTrace stackTrace) → void
A callback that can be passed to StateNotifier.onError. [...]
Listener<T>(T state) → void
A listener that can be added to a StateNotifier using StateNotifier.addListener. [...]
Locator() → T
A funtion that allows obtaining other objects. [...]
RemoveListener() → void
A callback that can be used to remove a listener added with StateNotifier.addListener. [...]

Exceptions / Errors

DependencyNotFoundException<T>
Thrown when tried to call LocatorMixin.read<T>(), but the T was not found.s