IMapIterator<K, T> constructor

IMapIterator<K, T>({
  1. IMapIterator? iterator,
  2. dynamic key,
  3. dynamic value,
  4. num? count,
  5. bool next()?,
  6. bool hasNext()?,
  7. KeyValuePair? first()?,
  8. void reset()?,
  9. bool any(
    1. bool (
      1. KeyValuePair
      )
    )?,
  10. bool all(
    1. bool (
      1. KeyValuePair
      )
    )?,
  11. IMapIterator each(
    1. void (
      1. KeyValuePair
      )
    )?,
  12. Iterator<S> map<S>(
    1. S (
      1. KeyValuePair
      )
    )?,
  13. Iterator<KeyValuePair> filter(
    1. bool (
      1. KeyValuePair
      )
    )?,
})

Implementation

factory IMapIterator({
  _i3.IMapIterator<_i2.dynamic, _i2.dynamic>? iterator,
  _i2.dynamic key,
  _i2.dynamic value,
  _i2.num? count,
  _i2.bool Function()? next,
  _i2.bool Function()? hasNext,
  _i3.KeyValuePair<_i2.dynamic, _i2.dynamic>? Function()? first,
  void Function()? reset,
  _i2.bool Function(
          _i2.bool Function(_i3.KeyValuePair<_i2.dynamic, _i2.dynamic>))?
      any,
  _i2.bool Function(
          _i2.bool Function(_i3.KeyValuePair<_i2.dynamic, _i2.dynamic>))?
      all,
  _i3.IMapIterator<_i2.dynamic, _i2.dynamic> Function(
          void Function(_i3.KeyValuePair<_i2.dynamic, _i2.dynamic>))?
      each,
  _i3.Iterator<S> Function<S>(
          S Function(_i3.KeyValuePair<_i2.dynamic, _i2.dynamic>))?
      map,
  _i3.Iterator<_i3.KeyValuePair<_i2.dynamic, _i2.dynamic>> Function(
          _i2.bool Function(_i3.KeyValuePair<_i2.dynamic, _i2.dynamic>))?
      filter,
}) =>
    IMapIterator._(
      iterator: iterator ?? _i5.undefined,
      key: key,
      value: value,
      count: count,
      next: next == null ? null : _i4.allowInterop(next),
      hasNext: hasNext == null ? null : _i4.allowInterop(hasNext),
      first: first == null
          ? null
          : _i4.allowInterop(() => () => first() ?? _i5.undefined),
      reset: reset == null ? null : _i4.allowInterop(reset),
      any: any == null ? null : _i4.allowInterop(any),
      all: all == null ? null : _i4.allowInterop(all),
      each: each == null ? null : _i4.allowInterop(each),
      map: map == null ? null : _i4.allowInterop(map),
      filter: filter == null ? null : _i4.allowInterop(filter),
    );