ValueStream<T> constructor

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

Implementation

ValueStream(
    {void Function()? onListen,
    FutureOr<void> Function()? onCancel,
    bool sync = false})
    : _userOnListen = onListen,
      _userOnCancel = onCancel,
      _sync = sync {
  _setController();
}