JSPropertyDescriptor constructor

JSPropertyDescriptor({
  1. dynamic value = _missingDescriptorValue,
  2. dynamic get,
  3. dynamic set,
  4. bool writable = true,
  5. bool enumerable = true,
  6. bool configurable = true,
  7. bool? hasWritable,
  8. bool? hasEnumerable,
  9. bool? hasConfigurable,
})

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;