mapTheme property
MapTheme
get
mapTheme
Implementation
MapTheme get mapTheme {
switch (this) {
case DefaultAppearance():
return const MapTheme.defaultDayTheme();
case UniversalAppearance(theme: final theme):
return theme;
case AutomaticAppearance(
lightTheme: final lightTheme,
nightTheme: final nightTheme
):
final brightness =
WidgetsBinding.instance.platformDispatcher.platformBrightness;
return brightness == Brightness.light ? lightTheme : nightTheme;
}
}