UnderlyingSource constructor
UnderlyingSource({
- UnderlyingSourceStartCallback? start,
- UnderlyingSourcePullCallback? pull,
- UnderlyingSourceCancelCallback? cancel,
- ReadableStreamType? type,
- int? autoAllocateChunkSize,
Implementation
factory UnderlyingSource(
{UnderlyingSourceStartCallback? start,
UnderlyingSourcePullCallback? pull,
UnderlyingSourceCancelCallback? cancel,
ReadableStreamType? type,
int? autoAllocateChunkSize}) =>
UnderlyingSource._(
start: start ?? undefined,
pull: pull ?? undefined,
cancel: cancel ?? undefined,
type: type?.value ?? undefined,
autoAllocateChunkSize: autoAllocateChunkSize ?? undefined);