observe method

  1. @override
Dispose observe (Listener<ListChange<T>> listener, { bool fireImmediately })
override

Implementation

@override
Dispose observe(Listener<ListChange<T>> listener, {bool fireImmediately}) {
  if (fireImmediately == true) {
    final change = ListChange(
        object: this,
        index: 0,
        type: OperationType.add,
        added: toList(growable: false));
    listener(change);
  }

  return _listeners.add(listener);
}