NotifierTester<N extends BaseSyncNotifier<T> , T> class
A wrapper for BaseSyncNotifier
that exposes setState and state.
It creates a container internally, so any ref call still works.
This is useful for unit tests.
Constructors
- NotifierTester({required N notifier, T? initialState})
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setState(
T state) → void - Updates the state.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited