LabelAnnotationConfig constructor

const LabelAnnotationConfig({
  1. Color? backgroundColor,
  2. double backgroundOpacity = 0.8,
  3. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 4, vertical: 2),
  4. double borderRadius = 2,
  5. bool showBorder = false,
  6. Color borderColor = const Color(0xFF666666),
  7. double borderWidth = 1,
  8. double rotation = 0,
})

Creates a label annotation configuration.

Implementation

const LabelAnnotationConfig({
  this.backgroundColor,
  this.backgroundOpacity = 0.8,
  this.padding = const EdgeInsets.symmetric(horizontal: 4, vertical: 2),
  this.borderRadius = 2,
  this.showBorder = false,
  this.borderColor = const Color(0xFF666666),
  this.borderWidth = 1,
  this.rotation = 0,
});