JSPropertyDescriptor constructor
JSPropertyDescriptor({})
Implementation
JSPropertyDescriptor({
dynamic value = _missingDescriptorValue,
this.get,
this.set,
this.writable = true,
this.enumerable = true,
this.configurable = true,
bool? hasWritable,
bool? hasEnumerable,
bool? hasConfigurable,
}) : hasValue = !identical(value, _missingDescriptorValue),
value = identical(value, _missingDescriptorValue) ? null : value,
hasWritable = hasWritable ?? true,
hasEnumerable = hasEnumerable ?? true,
hasConfigurable = hasConfigurable ?? true;