createForwardingSubject<R> method

  1. @override
ReplaySubject<R> createForwardingSubject <R>(
  1. {void onListen(
      ),
    1. void onCancel(
        ),
      1. bool sync = false}
      )
      override

      Creates a trampoline StreamController, which can forward events in the same manner as the original Subject does. e.g. replay or behavior on subscribe.

      Implementation

      @override
      ReplaySubject<R> createForwardingSubject<R>({
        void Function() onListen,
        void Function() onCancel,
        bool sync = false,
      }) =>
          ReplaySubject(
            maxSize: _maxSize,
            onCancel: onCancel,
            onListen: onListen,
            sync: sync,
          );