StreamSubscriber<T> constructor

StreamSubscriber<T>({
  1. void onnext(
    1. T value
    )?,
  2. void onerror(
    1. dynamic error
    )?,
  3. void oncomplete()?,
})

Implementation

factory StreamSubscriber(
        {void Function(T value)? onnext,
        void Function(dynamic error)? onerror,
        void Function()? oncomplete}) =>
    _StreamSubScriber(onnext, onerror, oncomplete);