TemplateComponent constructor

const TemplateComponent({
  1. required ComponentType type,
  2. String? subType,
  3. int? index,
  4. 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 [],
});