copyWith method
BaseThemeData
copyWith({
- Brightness? brightness,
- double? appBarHeight,
- bool? appBarBackdropFilter,
- bool? appBarTransitionBetweenRoutes,
- ThemeData? materialTheme,
- ThemeData? materialDarkTheme,
- ThemeData? materialHighContrastTheme,
- ThemeData? materialHighContrastDarkTheme,
- CupertinoThemeData? cupertinoTheme,
- bool? routeFullscreenGackGesture,
- Color? sectionDividerColor,
- Color? tileBackgroundColor,
- BasePlatformMode? platformMode,
- bool? withoutSplashOnCupertino,
- BaseParam? baseParam,
Implementation
BaseThemeData copyWith({
Brightness? brightness,
double? appBarHeight,
bool? appBarBackdropFilter,
bool? appBarTransitionBetweenRoutes,
ThemeData? materialTheme,
ThemeData? materialDarkTheme,
ThemeData? materialHighContrastTheme,
ThemeData? materialHighContrastDarkTheme,
CupertinoThemeData? cupertinoTheme,
bool? routeFullscreenGackGesture,
Color? sectionDividerColor,
Color? tileBackgroundColor,
BasePlatformMode? platformMode,
bool? withoutSplashOnCupertino,
BaseParam? baseParam,
}) {
return BaseThemeData.raw(
brightness: brightness ?? this.brightness,
appBarHeight: appBarHeight ?? this.appBarHeight,
appBarBackdropFilter: appBarBackdropFilter ?? this.appBarBackdropFilter,
appBarTransitionBetweenRoutes: appBarTransitionBetweenRoutes ?? this.appBarTransitionBetweenRoutes,
materialTheme: materialTheme ?? this.materialTheme,
materialDarkTheme: materialDarkTheme ?? this.materialDarkTheme,
materialHighContrastTheme: materialHighContrastTheme ?? this.materialHighContrastTheme,
materialHighContrastDarkTheme: materialHighContrastDarkTheme ?? this.materialHighContrastDarkTheme,
cupertinoTheme: cupertinoTheme ?? this.cupertinoTheme,
routeFullscreenGackGesture: routeFullscreenGackGesture ?? this.routeFullscreenGackGesture,
sectionDividerColor: sectionDividerColor ?? this.sectionDividerColor,
tileBackgroundColor: tileBackgroundColor ?? this.tileBackgroundColor,
platformMode: platformMode ?? this.platformMode,
withoutSplashOnCupertino: withoutSplashOnCupertino ?? this.withoutSplashOnCupertino,
baseParam: baseParam ?? this.baseParam,
);
}