UnderlyingSource<R> constructor

UnderlyingSource<R>({
  1. num? autoAllocateChunkSize,
  2. UnderlyingSourceCancelCallback? cancel,
  3. UnderlyingSourcePullCallback? pull,
  4. UnderlyingSourceStartCallback? start,
  5. ReadableStreamType? type,
})

Implementation

factory UnderlyingSource({
  _i2.num? autoAllocateChunkSize,
  _i3.UnderlyingSourceCancelCallback? cancel,
  _i3.UnderlyingSourcePullCallback<_i2.dynamic>? pull,
  _i3.UnderlyingSourceStartCallback<_i2.dynamic>? start,
  _i3.ReadableStreamType? type,
}) =>
    UnderlyingSource._(
      autoAllocateChunkSize: autoAllocateChunkSize,
      cancel: cancel ?? _i6.undefined,
      pull: pull ?? _i6.undefined,
      start: start ?? _i6.undefined,
      type: type,
    );