LazyStreamController<T> constructor

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

Creates a new LazyStreamController that will be a non-broadcast controller.

Implementation

factory LazyStreamController(
    {void onListen()?, void onCancel()?, bool sync = false}) {
  return LazyStreamController._(() => StreamController<T>(
      onListen: onListen, onCancel: onCancel, sync: sync));
}