SfMapsThemeData constructor

const SfMapsThemeData({
  1. Color? layerColor,
  2. Color? layerStrokeColor,
  3. double layerStrokeWidth = 1.0,
  4. Color? shapeHoverColor,
  5. Color? shapeHoverStrokeColor,
  6. double? shapeHoverStrokeWidth,
  7. TextStyle? legendTextStyle,
  8. Color? markerIconColor,
  9. Color? markerIconStrokeColor,
  10. double markerIconStrokeWidth = 1.0,
  11. TextStyle? dataLabelTextStyle,
  12. Color? bubbleColor,
  13. Color? bubbleStrokeColor,
  14. double bubbleStrokeWidth = 1.0,
  15. Color? bubbleHoverColor,
  16. Color? bubbleHoverStrokeColor,
  17. double? bubbleHoverStrokeWidth,
  18. Color? selectionColor,
  19. Color? selectionStrokeColor,
  20. double selectionStrokeWidth = 0.5,
  21. Color? tooltipColor,
  22. Color? tooltipStrokeColor,
  23. double tooltipStrokeWidth = 1.0,
  24. BorderRadiusGeometry tooltipBorderRadius = const BorderRadius.all(Radius.circular(4.0)),
  25. Color? toggledItemColor,
  26. Color? toggledItemStrokeColor,
  27. double? toggledItemStrokeWidth,
})

Create a SfMapsThemeData given a set of exact values. All the values must be specified.

This will rarely be used directly. It is used by lerp to create intermediate themes based on two themes created with the SfMapsThemeData constructor.

Implementation

const SfMapsThemeData({
  this.layerColor,
  this.layerStrokeColor,
  this.layerStrokeWidth = 1.0,
  this.shapeHoverColor,
  this.shapeHoverStrokeColor,
  this.shapeHoverStrokeWidth,
  this.legendTextStyle,
  this.markerIconColor,
  this.markerIconStrokeColor,
  this.markerIconStrokeWidth = 1.0,
  this.dataLabelTextStyle,
  this.bubbleColor,
  this.bubbleStrokeColor,
  this.bubbleStrokeWidth = 1.0,
  this.bubbleHoverColor,
  this.bubbleHoverStrokeColor,
  this.bubbleHoverStrokeWidth,
  this.selectionColor,
  this.selectionStrokeColor,
  this.selectionStrokeWidth = 0.5,
  this.tooltipColor,
  this.tooltipStrokeColor,
  this.tooltipStrokeWidth = 1.0,
  this.tooltipBorderRadius = const BorderRadius.all(Radius.circular(4.0)),
  this.toggledItemColor,
  this.toggledItemStrokeColor,
  this.toggledItemStrokeWidth,
});