subscribe<T> abstract method

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

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

Implementation

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