HorizontalBarrierStyle constructor
const
HorizontalBarrierStyle({
- LabelShape labelShape = LabelShape.rectangle,
- double labelHeight = 24,
- double labelPadding = 4,
- Color color = const Color(0xFF00A79E),
- Color titleBackgroundColor = const Color(0xFF0E0E0E),
- Color secondaryBackgroundColor = const Color(0xFF607D8B),
- bool isDashed = true,
- bool hasBlinkingDot = false,
- Color? blinkingDotColor,
- double arrowSize = 5,
- bool hasArrow = true,
- bool hasLine = true,
- Color labelShapeBackgroundColor = const Color(0xFF000000),
- Color lineColor = const Color(0xFF000000),
- TextStyle textStyle = const TextStyle(fontSize: 10, height: 1.3, fontWeight: FontWeight.normal, color: Colors.white, fontFeatures: <FontFeature>[FontFeature.tabularFigures()]),
Initializes a horizontal barrier style.
Implementation
const HorizontalBarrierStyle({
this.labelShape = LabelShape.rectangle,
this.labelHeight = 24,
this.labelPadding = 4,
super.color,
super.titleBackgroundColor,
this.secondaryBackgroundColor = const Color(0xFF607D8B),
super.isDashed,
this.hasBlinkingDot = false,
Color? blinkingDotColor,
this.arrowSize = 5,
this.hasArrow = true,
this.hasLine = true,
this.labelShapeBackgroundColor = const Color(0xFF000000),
this.lineColor = const Color(0xFF000000),
super.textStyle,
}) : blinkingDotColor = blinkingDotColor ?? color;