copyWith method

MapTheme copyWith({
  1. String? name,
  2. Color? loadingBackground,
  3. MapThemeColorMode? colorMode,
})

Implementation

MapTheme copyWith({
  String? name,
  Color? loadingBackground,
  MapThemeColorMode? colorMode,
}) {
  return MapTheme(
    name: name ?? this.name,
    loadingBackground: loadingBackground ?? this.loadingBackground,
    colorMode: colorMode ?? this.colorMode,
  );
}