TemplateComponent constructor
const
TemplateComponent({
- required ComponentType type,
- String? subType,
- int? index,
- List<
TemplateParameter> parameters = const [],
Creates a new template component.
type
is the type of component.
subType
is an optional subtype.
index
is an optional index (required for buttons).
parameters
is the list of parameters for the component.
Implementation
const TemplateComponent({
required this.type,
this.subType,
this.index,
this.parameters = const [],
});