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

hashCode int
The hash code for this object.
no setterinherited
notifier → N
The wrapped notifier.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state → T
Gets the current state.
no setter

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