MapShapeSublayer constructor
const
MapShapeSublayer({
- Key? key,
- required MapShapeSource source,
- MapShapeLayerController? controller,
- int initialMarkersCount = 0,
- MapMarkerBuilder? markerBuilder,
- IndexedWidgetBuilder? shapeTooltipBuilder,
- IndexedWidgetBuilder? bubbleTooltipBuilder,
- IndexedWidgetBuilder? markerTooltipBuilder,
- int selectedIndex = -1,
- ValueChanged<
int> ? onSelectionChanged, - bool showDataLabels = false,
- Color? color,
- Color? strokeColor,
- double? strokeWidth,
- MapDataLabelSettings dataLabelSettings = const MapDataLabelSettings(),
- MapBubbleSettings bubbleSettings = const MapBubbleSettings(),
- 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);