StreamSubscriber constructor

StreamSubscriber({
  1. FutureOr<void> onCancel()? = null,
})

Implementation

StreamSubscriber({FutureOr<void> onCancel()? = null})
    : controller = StreamController(onCancel: onCancel);