ReadonlySet<T> constructor

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

Implementation

factory ReadonlySet({
  _i2.num? size,
  void Function(
    void Function(
      _i2.dynamic,
      _i2.dynamic,
      _i6.ReadonlySet<_i2.dynamic>,
    ), [
    _i2.dynamic,
  ])? forEach,
  _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,
}) =>
    ReadonlySet._(
      size: size,
      forEach: forEach == null ? null : _i4.allowInterop(forEach),
      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),
    );