StreamControllerWithInitialValue<T> constructor

StreamControllerWithInitialValue<T>({
  1. T? value,
  2. void onListen()?,
  3. void onCancel()?,
  4. bool sync = false,
})

Implementation

StreamControllerWithInitialValue({
  this.value,
  void Function()? onListen,
  void Function()? onCancel,
  bool sync = false,
}) {
  _streamController = StreamController<T>(
    onListen: onListen,
    onCancel: onCancel,
    sync: sync,
  );
}