addListener abstract method

ProviderSubscription<State> addListener(
  1. Node node,
  2. void listener(
    1. State? previous,
    2. State next
    ), {
  3. required void onError(
    1. Object error,
    2. StackTrace stackTrace
    )?,
  4. required void onDependencyMayHaveChanged()?,
  5. 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,
});