LineLabelStyle constructor
const
LineLabelStyle({
- bool enabled = true,
- TextStyle textStyle = const TextStyle(fontSize: 12.0, fontWeight: FontWeight.w600),
- Color? containerColor,
- double cornerRadius = 8.0,
- EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 6, vertical: 2),
- double offsetX = 0.0,
- double offsetY = -12.0,
- bool useLineColorForText = true,
- double containerAlpha = 0.1,
- LabelOverlapBehavior overlapBehavior = LabelOverlapBehavior.none,
Implementation
const LineLabelStyle({
this.enabled = true,
this.textStyle = const TextStyle(
fontSize: 12.0,
fontWeight: FontWeight.w600,
),
this.containerColor,
this.cornerRadius = 8.0,
this.padding = const EdgeInsets.symmetric(horizontal: 6, vertical: 2),
this.offsetX = 0.0,
this.offsetY = -12.0,
this.useLineColorForText = true,
this.containerAlpha = 0.1,
this.overlapBehavior = LabelOverlapBehavior.none,
});