AnnotationTheme constructor

const AnnotationTheme({
  1. required Color selectionBorderColor,
  2. required Color selectionBackgroundColor,
  3. required Color highlightBorderColor,
  4. required Color highlightBackgroundColor,
  5. required double borderWidth,
  6. double highlightBorderWidthDelta = 1.0,
  7. required BorderRadius borderRadius,
})

Creates an annotation theme with the specified visual properties.

All parameters are required to ensure consistent theming across different annotation states.

Parameters:

  • selectionBorderColor: Border color when annotation is selected
  • selectionBackgroundColor: Background overlay color when selected
  • highlightBorderColor: Border color when annotation is highlighted
  • highlightBackgroundColor: Background overlay color when highlighted
  • borderWidth: Width of the selection/highlight border
  • highlightBorderWidthDelta: Additional width for highlight border (default: 1.0)
  • borderRadius: Border radius for the selection/highlight overlay

Implementation

const AnnotationTheme({
  required this.selectionBorderColor,
  required this.selectionBackgroundColor,
  required this.highlightBorderColor,
  required this.highlightBackgroundColor,
  required this.borderWidth,
  this.highlightBorderWidthDelta = 1.0,
  required this.borderRadius,
});