ReadableStreamGenericReader constructor

ReadableStreamGenericReader({
  1. Future? closed,
  2. Future<void> cancel([
    1. dynamic
    ])?,
})

Implementation

factory ReadableStreamGenericReader({
  _i2.Future<_i2.dynamic>? closed,
  _i2.Future<void> Function([_i2.dynamic])? cancel,
}) =>
    ReadableStreamGenericReader._(
      closed: closed,
      cancel: cancel == null ? null : _i4.allowInterop(cancel),
    );