bubbleTooltipTextMapper property

IndexedStringValueMapper bubbleTooltipTextMapper
final

Returns the tooltip text for the bubble in the shape.

  @override
 Widget build(BuildContext context) {
   return SfMaps(
     layers: [
       MapShapeLayer(
         showBubbles: true,
         enableBubbleTooltip: true,
         delegate: MapShapeLayerDelegate(
             shapeFile: "assets/world_map.json",
             shapeDataField: "continent",
             dataCount: bubbleData.length,
             primaryValueMapper: (index) {
               return bubbleData[index].country;
             },
             bubbleTooltipTextMapper: (index) {
               return bubbleData[index].country;
             }
          ),
       )
     ],
   );
 }

Implementation

final IndexedStringValueMapper bubbleTooltipTextMapper