Component constructor

Component({
  1. required String componentName,
  2. String? componentMarkdown,
  3. required List<ComponentState> states,
})

Implementation

Component({
  required this.componentName,
  this.componentMarkdown,
  required this.states,
}) : super(componentName, OrganizerType.component, const <Organizer>[]) {
  for (final ComponentState state in states) {
    state.parent = this;
  }
}