ComponentPropertyDef constructor

const ComponentPropertyDef(
  1. String name,
  2. ComponentPropertyKind kind, {
  3. PropertyValue? defaultValue,
  4. String? doc,
  5. String? group,
  6. String? resourceKind,
  7. List<String>? options,
  8. List<PropertyConstraint<Object?>> constraints = const [],
  9. List<String> formerNames = const [],
  10. bool transient = false,
  11. ComponentPropertyDef? itemDef,
  12. List<ComponentPropertyDef>? objectFields,
  13. String unionTag = 'kind',
  14. Map<String, List<ComponentPropertyDef>>? unionVariants,
})

Declares property name of kind.

Implementation

const ComponentPropertyDef(
  this.name,
  this.kind, {
  this.defaultValue,
  this.doc,
  this.group,
  this.resourceKind,
  this.options,
  this.constraints = const [],
  this.formerNames = const [],
  this.transient = false,
  this.itemDef,
  this.objectFields,
  this.unionTag = 'kind',
  this.unionVariants,
});