ReadonlyMap<K, V> constructor

ReadonlyMap<K, V>({
  1. num? size,
  2. void forEach(
    1. void (
      1. dynamic,
      2. dynamic,
      3. ReadonlyMap
      ), [
    2. dynamic
    ])?,
  3. dynamic get(
    1. dynamic
    )?,
  4. bool has(
    1. dynamic
    )?,
  5. IterableIterator<(dynamic, dynamic)> entries()?,
  6. IterableIterator keys()?,
  7. IterableIterator values()?,
})

Implementation

factory ReadonlyMap({
  _i2.num? size,
  void Function(
    void Function(
      _i2.dynamic,
      _i2.dynamic,
      _i6.ReadonlyMap<_i2.dynamic, _i2.dynamic>,
    ), [
    _i2.dynamic,
  ])? forEach,
  _i2.dynamic Function(_i2.dynamic)? get,
  _i2.bool Function(_i2.dynamic)? has,
  _i3.IterableIterator<
              (
                _i2.dynamic,
                _i2.dynamic,
              )>
          Function()?
      entries,
  _i3.IterableIterator<_i2.dynamic> Function()? keys,
  _i3.IterableIterator<_i2.dynamic> Function()? values,
}) =>
    ReadonlyMap._(
      size: size,
      forEach: forEach == null ? null : _i4.allowInterop(forEach),
      get: get == null
          ? null
          : _i4.allowInterop((p0) => () => get(p0) ?? _i5.undefined),
      has: has == null ? null : _i4.allowInterop(has),
      entries: entries == null ? null : _i4.allowInterop(entries),
      keys: keys == null ? null : _i4.allowInterop(keys),
      values: values == null ? null : _i4.allowInterop(values),
    );