StreamControllerWrapper<T> constructor

const StreamControllerWrapper<T>({
  1. required CallbackWidgetBuilder<StreamController<T>> child,
  2. VoidCallback? onListen,
  3. VoidCallback? onCancel,
  4. bool sync = false,
  5. Key? key,
})

Creates a StreamControllerWrapper.

The child parameter must not be null. The sync parameter controls whether the StreamController is synchronous. The onListen and onCancel callbacks are invoked when the underlying stream is listened to or canceled, respectively.

Implementation

const StreamControllerWrapper({
  required this.child,
  this.onListen,
  this.onCancel,
  this.sync = false,
  super.key,
});