HighlightRenderSettings constructor

HighlightRenderSettings({
  1. Set<HighlightOptions> options = const <HighlightOptions>{HighlightOptions.showLandmark},
  2. Color innerColor = const Color.fromARGB(255, 255, 98, 0),
  3. Color outerColor = const Color.fromARGB(255, 255, 98, 0),
  4. double innerSz = 1.5,
  5. double outerSz = RenderSettings.defaultOuterSize,
  6. double imgSz = RenderSettings.defaultImageSize,
  7. double textSz = RenderSettings.defaultTextSize,
  8. Color textColor = RenderSettings.defaultTextColor,
  9. LineType lineType = RenderSettings.defaultLineType,
  10. ImagePosition imagePosition = RenderSettings.defaultImagePosition,
})

Creates highlight-specific render settings with sensible defaults.

Parameters

  • options: (Set<HighlightOptions>) Enabled highlight options. Defaults to showing the landmark.
  • innerColor: (Color) Inner highlight color.
  • outerColor: (Color) Outer highlight color.
  • innerSz: (double) Inner size in millimeters.
  • outerSz: (double) Outer size in millimeters.
  • imgSz: (double) Image size in millimeters.
  • textSz: (double) Text size in millimeters.
  • textColor: (Color) Text color.
  • lineType: (LineType) Line style used for the highlight border.
  • imagePosition: (ImagePosition) Image placement relative to the highlight.

Implementation

HighlightRenderSettings({
  super.options = const <HighlightOptions>{HighlightOptions.showLandmark},
  super.innerColor = const Color.fromARGB(255, 255, 98, 0),
  super.outerColor = const Color.fromARGB(255, 255, 98, 0),
  super.innerSz = 1.5,
  super.outerSz = RenderSettings.defaultOuterSize,
  super.imgSz = RenderSettings.defaultImageSize,
  super.textSz = RenderSettings.defaultTextSize,
  super.textColor = RenderSettings.defaultTextColor,
  super.lineType = RenderSettings.defaultLineType,
  super.imagePosition = RenderSettings.defaultImagePosition,
});