Legend constructor

const Legend(
  1. List<Component>? children, {
  2. String tag = 'legend',
  3. List<LegendStyling>? style,
  4. String? id,
  5. String? classes,
  6. Styles? css,
  7. Map<String, String>? attributes,
  8. Map<String, List<UiEventHandler>>? eventHandlers,
  9. Component? child,
  10. Key? key,
})

Creates a Legend component.

  • children or child: The title text for the fieldset.
  • tag: The HTML tag for the root element, defaults to 'legend'.
  • style: A list of LegendStyling instances for styling.
  • Other parameters are inherited from UiComponent.

Implementation

const Legend(
  super.children, {
  super.tag = 'legend',
  List<LegendStyling>? style,
  super.id,
  super.classes,
  super.css,
  super.attributes,
  super.eventHandlers,
  super.child,
  super.key,
}) : super(style: style);