StreamConsumerWrapper<S> constructor

StreamConsumerWrapper<S>(
  1. StreamConsumer<S>? origin
)

Constructor.

  • origin: the original stream consumer. Note: it can be null. However, if null, you can't call most of methods, including origin. It is design to make it easier to implement a dummy stream consumer.

Implementation

StreamConsumerWrapper(StreamConsumer<S>? origin): _origin = origin;