MapShapeSublayer constructor

const MapShapeSublayer({
  1. Key? key,
  2. required MapShapeSource source,
  3. MapShapeLayerController? controller,
  4. int initialMarkersCount = 0,
  5. MapMarkerBuilder? markerBuilder,
  6. IndexedWidgetBuilder? shapeTooltipBuilder,
  7. IndexedWidgetBuilder? bubbleTooltipBuilder,
  8. IndexedWidgetBuilder? markerTooltipBuilder,
  9. int selectedIndex = -1,
  10. ValueChanged<int>? onSelectionChanged,
  11. bool showDataLabels = false,
  12. Color? color,
  13. Color? strokeColor,
  14. double? strokeWidth,
  15. MapDataLabelSettings dataLabelSettings = const MapDataLabelSettings(),
  16. MapBubbleSettings bubbleSettings = const MapBubbleSettings(),
  17. MapSelectionSettings selectionSettings = const MapSelectionSettings(),
})

Creates a MapShapeSublayer.

Implementation

const MapShapeSublayer({
  Key? key,
  required this.source,
  this.controller,
  this.initialMarkersCount = 0,
  this.markerBuilder,
  this.shapeTooltipBuilder,
  this.bubbleTooltipBuilder,
  this.markerTooltipBuilder,
  this.selectedIndex = -1,
  this.onSelectionChanged,
  this.showDataLabels = false,
  this.color,
  this.strokeColor,
  this.strokeWidth,
  this.dataLabelSettings = const MapDataLabelSettings(),
  this.bubbleSettings = const MapBubbleSettings(),
  this.selectionSettings = const MapSelectionSettings(),
}) : super(key: key);