LineLabelStyle constructor

const LineLabelStyle({
  1. bool enabled = true,
  2. TextStyle textStyle = const TextStyle(fontSize: 12.0, fontWeight: FontWeight.w600),
  3. Color? containerColor,
  4. double cornerRadius = 8.0,
  5. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 6, vertical: 2),
  6. double offsetX = 0.0,
  7. double offsetY = -12.0,
  8. bool useLineColorForText = true,
  9. double containerAlpha = 0.1,
  10. 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,
});