copyWith method
FlexColorScheme
copyWith({
- ColorScheme? colorScheme,
- Brightness? brightness,
- Color? primary,
- Color? primaryContainer,
- Color? secondary,
- Color? secondaryContainer,
- Color? tertiary,
- Color? tertiaryContainer,
- Color? error,
- Color? surface,
- Color? background,
- Color? scaffoldBackground,
- Color? dialogBackground,
- Color? appBarBackground,
- Color? onPrimary,
- Color? onPrimaryContainer,
- Color? onSecondary,
- Color? onSecondaryContainer,
- Color? onTertiary,
- Color? onTertiaryContainer,
- Color? onSurface,
- Color? onBackground,
- Color? onError,
- Color? surfaceTint,
- FlexTabBarStyle? tabBarStyle,
- double? appBarElevation,
- double? bottomAppBarElevation,
- bool? tooltipsMatchBackground,
- bool? transparentStatusBar,
- VisualDensity? visualDensity,
- TextTheme? textTheme,
- TextTheme? primaryTextTheme,
- String? fontFamily,
- List<
String> ? fontFamilyFallback, - String? package,
- MaterialTapTargetSize? materialTapTargetSize,
- PageTransitionsTheme? pageTransitionsTheme,
- TargetPlatform? platform,
- Typography? typography,
- bool? applyElevationOverlayColor,
- FlexSubThemesData? subThemesData,
- bool? useMaterial3,
- Iterable<
ThemeExtension> ? extensions,
Copy the object with one or more provided properties changed.
Implementation
FlexColorScheme copyWith({
ColorScheme? colorScheme,
Brightness? brightness,
Color? primary,
Color? primaryContainer,
Color? secondary,
Color? secondaryContainer,
Color? tertiary,
Color? tertiaryContainer,
Color? error,
Color? surface,
Color? background,
Color? scaffoldBackground,
Color? dialogBackground,
Color? appBarBackground,
Color? onPrimary,
Color? onPrimaryContainer,
Color? onSecondary,
Color? onSecondaryContainer,
Color? onTertiary,
Color? onTertiaryContainer,
Color? onSurface,
Color? onBackground,
Color? onError,
Color? surfaceTint,
FlexTabBarStyle? tabBarStyle,
double? appBarElevation,
double? bottomAppBarElevation,
bool? tooltipsMatchBackground,
bool? transparentStatusBar,
VisualDensity? visualDensity,
TextTheme? textTheme,
TextTheme? primaryTextTheme,
String? fontFamily,
List<String>? fontFamilyFallback,
String? package,
MaterialTapTargetSize? materialTapTargetSize,
PageTransitionsTheme? pageTransitionsTheme,
TargetPlatform? platform,
Typography? typography,
bool? applyElevationOverlayColor,
FlexSubThemesData? subThemesData,
bool? useMaterial3,
Iterable<ThemeExtension<dynamic>>? extensions,
}) {
return FlexColorScheme(
colorScheme: colorScheme ?? this.colorScheme,
brightness: brightness ?? this.brightness,
primary: primary ?? this.primary,
primaryContainer: primaryContainer ?? this.primaryContainer,
secondary: secondary ?? this.secondary,
secondaryContainer: secondaryContainer ?? this.secondaryContainer,
tertiary: tertiary ?? this.tertiary,
tertiaryContainer: tertiaryContainer ?? this.tertiaryContainer,
error: error ?? this.error,
surface: surface ?? this.surface,
background: background ?? this.background,
scaffoldBackground: scaffoldBackground ?? this.scaffoldBackground,
appBarBackground: appBarBackground ?? this.appBarBackground,
dialogBackground: dialogBackground ?? this.dialogBackground,
onPrimary: onPrimary ?? this.onPrimary,
onPrimaryContainer: onPrimaryContainer ?? this.onPrimaryContainer,
onSecondary: onSecondary ?? this.onSecondary,
onSecondaryContainer: onSecondaryContainer ?? this.onSecondaryContainer,
onTertiary: onTertiary ?? this.onTertiary,
onTertiaryContainer: onTertiaryContainer ?? this.onTertiaryContainer,
onSurface: onSurface ?? this.onSurface,
onBackground: onBackground ?? this.onBackground,
onError: onError ?? this.onError,
surfaceTint: surfaceTint ?? this.surfaceTint,
tabBarStyle: tabBarStyle ?? this.tabBarStyle,
appBarElevation: appBarElevation ?? this.appBarElevation,
bottomAppBarElevation:
bottomAppBarElevation ?? this.bottomAppBarElevation,
tooltipsMatchBackground:
tooltipsMatchBackground ?? this.tooltipsMatchBackground,
transparentStatusBar: transparentStatusBar ?? this.transparentStatusBar,
visualDensity: visualDensity ?? this.visualDensity,
textTheme: textTheme ?? this.textTheme,
primaryTextTheme: primaryTextTheme ?? this.primaryTextTheme,
fontFamily: fontFamily ?? this.fontFamily,
fontFamilyFallback: fontFamilyFallback ?? this.fontFamilyFallback,
package: package ?? this.package,
materialTapTargetSize:
materialTapTargetSize ?? this.materialTapTargetSize,
pageTransitionsTheme: pageTransitionsTheme ?? this.pageTransitionsTheme,
platform: platform ?? this.platform,
typography: typography ?? this.typography,
applyElevationOverlayColor:
applyElevationOverlayColor ?? this.applyElevationOverlayColor,
subThemesData: subThemesData ?? this.subThemesData,
useMaterial3: useMaterial3 ?? this.useMaterial3,
extensions: extensions ?? this.extensions,
);
}