UnderlyingSource constructor

UnderlyingSource({
  1. UnderlyingSourceStartCallback? start,
  2. UnderlyingSourcePullCallback? pull,
  3. UnderlyingSourceCancelCallback? cancel,
  4. ReadableStreamType? type,
  5. 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);