subscribeWithPrevious<T> abstract method

void subscribeWithPrevious<T>(
  1. Pod<T> pod,
  2. void handler(
    1. T? previous,
    2. T value
    ), {
  3. bool fireImmediately = false,
})

Subscribe to the given pod, automatically cancelling the subscription when this pod is disposed.

Implementation

void subscribeWithPrevious<T>(
  Pod<T> pod,
  void Function(T? previous, T value) handler, {
  bool fireImmediately = false,
});