VerticalLineLabel constructor

VerticalLineLabel({
  1. EdgeInsetsGeometry padding = const EdgeInsets.all(6),
  2. TextStyle? style = const TextStyle(color: Colors.black, fontWeight: FontWeight.bold, fontSize: 14),
  3. Alignment alignment = Alignment.bottomRight,
  4. bool show = false,
  5. LabelDirection direction = LabelDirection.horizontal,
  6. String labelResolver(
    1. VerticalLine
    ) = VerticalLineLabel.defaultLineLabelResolver,
})

Draws a title on the VerticalLine, 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

VerticalLineLabel({
  super.padding = const EdgeInsets.all(6),
  super.style = const TextStyle(
    color: Colors.black,
    fontWeight: FontWeight.bold,
    fontSize: 14,
  ),
  super.alignment = Alignment.bottomRight,
  super.show = false,
  super.direction = LabelDirection.horizontal,
  this.labelResolver = VerticalLineLabel.defaultLineLabelResolver,
});