AsyncGenerator<T, TReturn, TNext> constructor

AsyncGenerator<T, TReturn, TNext>({
  1. Future<IteratorResult<Object?, dynamic>> next([
    1. Iterable?
    ])?,
  2. Future<IteratorResult<Object?, dynamic>> return$(
    1. FutureOr
    )?,
  3. Future<IteratorResult<Object?, dynamic>> throw$([
    1. dynamic
    ])?,
})

Implementation

factory AsyncGenerator({
  _i2.Future<_i4.IteratorResult<_i2.Object?, _i2.dynamic>> Function(
          [_i2.Iterable<_i2.dynamic>?])?
      next,
  _i2.Future<_i4.IteratorResult<_i2.Object?, _i2.dynamic>> Function(
          _i5.FutureOr<_i2.dynamic>)?
      return$,
  _i2.Future<_i4.IteratorResult<_i2.Object?, _i2.dynamic>> Function(
          [_i2.dynamic])?
      throw$,
}) =>
    AsyncGenerator._(
      next: next == null
          ? null
          : _i6.allowInterop(([
              a0,
              a1,
              a2,
              a3,
              a4,
              a5,
              a6,
              a7,
              a8,
              a9,
            ]) =>
              next([
                a0,
                a1,
                a2,
                a3,
                a4,
                a5,
                a6,
                a7,
                a8,
                a9,
              ])),
      return$: return$ == null ? null : _i6.allowInterop(return$),
      throw$: throw$ == null ? null : _i6.allowInterop(throw$),
    );