AsyncNotifierTester<N extends BaseAsyncNotifier<T>, T> class

A wrapper for BaseAsyncNotifier that exposes setState and state. It creates a container internally, so any ref call still works. This is useful for unit tests.

Constructors

AsyncNotifierTester({required N notifier, AsyncValue<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 AsyncValue<T>
Gets the current state.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setFuture(Future<T> future) → void
Sets the future.
setState(AsyncValue<T> state) → void
Updates the state.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited