listenSelf abstract method
void
listenSelf(
- void listener(
- State? previous,
- State next
- 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,
});