ComponentPropertyDef constructor
const
ComponentPropertyDef(
- String name,
- ComponentPropertyKind kind, {
- PropertyValue? defaultValue,
- String? doc,
- String? group,
- String? resourceKind,
- List<
String> ? options, - List<
PropertyConstraint< constraints = const [],Object?> > - List<
String> formerNames = const [], - bool transient = false,
- ComponentPropertyDef? itemDef,
- List<
ComponentPropertyDef> ? objectFields, - String unionTag = 'kind',
- Map<
String, List< ? unionVariants,ComponentPropertyDef> >
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,
});