listenSelf abstract method
void
listenSelf(
- void listener(
- AsyncValue<
State> ? previous, - AsyncValue<
State> next
- AsyncValue<
- void onError(
- Object error,
- StackTrace stackTrace
inherited
Listens to changes on the value exposed by this provider.
The listener will be called immediately after the provider completes building.
As opposed to listen, the listener will be called even if
ProviderElementBase.updateShouldNotify
returns false, meaning that the previous
and new value can potentially be identical.
Implementation
void listenSelf(
void Function(State? previous, State next) listener, {
void Function(Object error, StackTrace stackTrace)? onError,
});