toggledItemColor property
Fills the toggled legend item's icon and the respective shape or bubble by this color.
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: SfTheme(
data: SfThemeData(
mapsThemeData: SfMapsThemeData(
toggledItemColor: Colors.yellow
)
),
child: SfMaps(),
),
)
);
}
See also:
- toggledItemStrokeColor, toggledItemStrokeWidth, to set the stroke for the toggled legend item's shape or bubble.
Implementation
final Color? toggledItemColor;