of static method
The data from the closest SfMapsTheme instance that encloses the given context.
Defaults to SfThemeData.mapsThemeData if there is no SfMapsTheme in the given build context.
Implementation
static SfMapsThemeData? of(BuildContext context) {
final SfMapsTheme? mapsTheme =
context.dependOnInheritedWidgetOfExactType<SfMapsTheme>();
return mapsTheme?.data ?? SfTheme.of(context).mapsThemeData;
}