Symbol constructor
Symbol({
- String? description,
- String toString$()?,
- Symbol valueOf()?,
- Symbol? iterator,
- Symbol? hasInstance,
- Symbol? isConcatSpreadable,
- Symbol? match,
- Symbol? replace,
- Symbol? search,
- Symbol? species,
- Symbol? split,
- Symbol? toPrimitive,
- Symbol? toStringTag,
- Symbol? unscopables,
- Symbol? asyncIterator,
- Symbol? matchAll,
- Symbol for$()?,
- String? keyFor()?,
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),
);