copyWith method

BaseThemeData copyWith({
  1. Brightness? brightness,
  2. double? appBarHeight,
  3. bool? appBarBackdropFilter,
  4. bool? appBarTransitionBetweenRoutes,
  5. ThemeData? materialTheme,
  6. ThemeData? materialDarkTheme,
  7. ThemeData? materialHighContrastTheme,
  8. ThemeData? materialHighContrastDarkTheme,
  9. CupertinoThemeData? cupertinoTheme,
  10. bool? routeFullscreenGackGesture,
  11. Color? sectionDividerColor,
  12. Color? tileBackgroundColor,
  13. BasePlatformMode? platformMode,
  14. bool? withoutSplashOnCupertino,
  15. 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,
  );
}