onAdd method

StreamSubscription<T> onAdd(
  1. void handler(
    1. T
    )
)

Execute handler everytime a model is added to this collection.

Implementation

StreamSubscription<T> onAdd(void Function(T) handler) {
  return addEventsController.stream.listen((model) => handler(model));
}