ReadonlyMap<K, V> constructor
ReadonlyMap<K, V> ({
- num? size,
- void forEach(
- void (
- dynamic,
- dynamic,
- ReadonlyMap
- dynamic
- void (
- dynamic get(
- dynamic
- bool has(
- dynamic
- IterableIterator<
(dynamic, dynamic)> entries()?, - IterableIterator keys()?,
- 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),
);