Symbol constructor

Symbol({
  1. String? description,
  2. String toString$()?,
  3. Symbol valueOf()?,
  4. Symbol? iterator,
  5. Symbol? hasInstance,
  6. Symbol? isConcatSpreadable,
  7. Symbol? match,
  8. Symbol? replace,
  9. Symbol? search,
  10. Symbol? species,
  11. Symbol? split,
  12. Symbol? toPrimitive,
  13. Symbol? toStringTag,
  14. Symbol? unscopables,
  15. Symbol? asyncIterator,
  16. Symbol? matchAll,
  17. Symbol for$(
    1. String
    )?,
  18. String? keyFor(
    1. Symbol
    )?,
})

Implementation

factory Symbol({
  _i2.String? description,
  _i2.String Function()? toString$,
  _i2.Symbol Function()? valueOf,
  _i2.Symbol? iterator,
  _i2.Symbol? hasInstance,
  _i2.Symbol? isConcatSpreadable,
  _i2.Symbol? match,
  _i2.Symbol? replace,
  _i2.Symbol? search,
  _i2.Symbol? species,
  _i2.Symbol? split,
  _i2.Symbol? toPrimitive,
  _i2.Symbol? toStringTag,
  _i2.Symbol? unscopables,
  _i2.Symbol? asyncIterator,
  _i2.Symbol? matchAll,
  _i2.Symbol Function(_i2.String)? for$,
  _i2.String? Function(_i2.Symbol)? keyFor,
}) =>
    Symbol._(
      description: description ?? _i5.undefined,
      toString$: toString$ == null ? null : _i6.allowInterop(toString$),
      valueOf: valueOf == null ? null : _i6.allowInterop(valueOf),
      iterator: iterator ?? _i5.undefined,
      hasInstance: hasInstance ?? _i5.undefined,
      isConcatSpreadable: isConcatSpreadable ?? _i5.undefined,
      match: match ?? _i5.undefined,
      replace: replace ?? _i5.undefined,
      search: search ?? _i5.undefined,
      species: species ?? _i5.undefined,
      split: split ?? _i5.undefined,
      toPrimitive: toPrimitive ?? _i5.undefined,
      toStringTag: toStringTag ?? _i5.undefined,
      unscopables: unscopables ?? _i5.undefined,
      asyncIterator: asyncIterator ?? _i5.undefined,
      matchAll: matchAll ?? _i5.undefined,
      for$: for$ == null ? null : _i6.allowInterop(for$),
      keyFor: keyFor == null
          ? null
          : _i6.allowInterop((p0) => () => keyFor(p0) ?? _i5.undefined),
    );