addListener abstract method
ProviderSubscription<State>
addListener(
- Node node,
- void listener(
- State? previous,
- State next
- required void onError(
- Object error,
- StackTrace stackTrace
- required void onDependencyMayHaveChanged()?,
- required bool fireImmediately,
Starts listening to this transformer
Implementation
ProviderSubscription<State> addListener(
Node node,
void Function(State? previous, State next) listener, {
required void Function(Object error, StackTrace stackTrace)? onError,
required void Function()? onDependencyMayHaveChanged,
required bool fireImmediately,
});