dataLabelMapper property

IndexedStringValueMapper dataLabelMapper
final

Returns the data label text for each shape.

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

Implementation

final IndexedStringValueMapper dataLabelMapper