HorizontalLineLabel constructor

HorizontalLineLabel({
  1. EdgeInsetsGeometry padding = const EdgeInsets.all(6),
  2. TextStyle? style,
  3. Alignment alignment = Alignment.topLeft,
  4. bool show = false,
  5. LabelDirection direction = LabelDirection.horizontal,
  6. String labelResolver(
    1. HorizontalLine
    ) = HorizontalLineLabel.defaultLineLabelResolver,
})

Draws a title on the HorizontalLine, align it with alignment over the line, applies padding for spaces, and applies [style for changing color, size, ... of the text. Drawing text will retrieve through labelResolver, you can override it with your custom data. show determines showing label or not. direction determines if the direction of the text should be horizontal or vertical.

Implementation

HorizontalLineLabel({
  super.padding = const EdgeInsets.all(6),
  super.style,
  super.alignment = Alignment.topLeft,
  super.show = false,
  super.direction = LabelDirection.horizontal,
  this.labelResolver = HorizontalLineLabel.defaultLineLabelResolver,
});