afterAllStream method

Stream<HookedServiceEvent<Id, Data, T>> afterAllStream()

Returns a Stream of all events fired after every service method.

NOTE: Only use this if you do not plan to modify events. There is no guarantee that events coming out of this Stream will see changes you make within the Stream callback.

Implementation

Stream<HookedServiceEvent<Id, Data, T>> afterAllStream() {
  var ctrl = StreamController<HookedServiceEvent<Id, Data, T>>();
  _ctrl.add(ctrl);
  before(HookedServiceEvent.all, ctrl.add);
  return ctrl.stream;
}