copyWith method
FluentThemeData
copyWith({
- Brightness? brightness,
- Iterable<
ThemeExtension> ? extensions, - VisualDensity? visualDensity,
- Typography? typography,
- AccentColor? accentColor,
- Color? activeColor,
- Color? inactiveColor,
- Color? inactiveBackgroundColor,
- Color? scaffoldBackgroundColor,
- Color? acrylicBackgroundColor,
- Color? micaBackgroundColor,
- Color? shadowColor,
- Color? cardColor,
- Color? selectionColor,
- Duration? fasterAnimationDuration,
- Duration? fastAnimationDuration,
- Duration? mediumAnimationDuration,
- Duration? slowAnimationDuration,
- Curve? animationCurve,
- ButtonThemeData? buttonTheme,
- CheckboxThemeData? checkboxTheme,
- ToggleSwitchThemeData? toggleSwitchTheme,
- IconThemeData? iconTheme,
- ContentDialogThemeData? dialogTheme,
- TooltipThemeData? tooltipTheme,
- DividerThemeData? dividerTheme,
- RadioButtonThemeData? radioButtonTheme,
- ToggleButtonThemeData? toggleButtonTheme,
- SliderThemeData? sliderTheme,
- InfoBarThemeData? infoBarTheme,
- FocusThemeData? focusTheme,
- ScrollbarThemeData? scrollbarTheme,
- ResourceDictionary? resources,
Implementation
FluentThemeData copyWith({
Brightness? brightness,
Iterable<ThemeExtension<dynamic>>? extensions,
VisualDensity? visualDensity,
Typography? typography,
AccentColor? accentColor,
Color? activeColor,
Color? inactiveColor,
Color? inactiveBackgroundColor,
Color? scaffoldBackgroundColor,
Color? acrylicBackgroundColor,
Color? micaBackgroundColor,
Color? shadowColor,
Color? menuColor,
Color? cardColor,
Color? selectionColor,
Duration? fasterAnimationDuration,
Duration? fastAnimationDuration,
Duration? mediumAnimationDuration,
Duration? slowAnimationDuration,
Curve? animationCurve,
ButtonThemeData? buttonTheme,
BottomNavigationThemeData? bottomNavigationTheme,
CheckboxThemeData? checkboxTheme,
ToggleSwitchThemeData? toggleSwitchTheme,
IconThemeData? iconTheme,
ContentDialogThemeData? dialogTheme,
TooltipThemeData? tooltipTheme,
DividerThemeData? dividerTheme,
NavigationPaneThemeData? navigationPaneTheme,
RadioButtonThemeData? radioButtonTheme,
ToggleButtonThemeData? toggleButtonTheme,
SliderThemeData? sliderTheme,
InfoBarThemeData? infoBarTheme,
FocusThemeData? focusTheme,
ScrollbarThemeData? scrollbarTheme,
ResourceDictionary? resources,
}) {
return FluentThemeData.raw(
brightness: brightness ?? this.brightness,
visualDensity: visualDensity ?? this.visualDensity,
typography: this.typography.merge(typography),
extensions: extensions != null
? _themeExtensionIterableToMap(extensions)
: this.extensions,
accentColor: accentColor ?? this.accentColor,
activeColor: activeColor ?? this.activeColor,
inactiveColor: inactiveColor ?? this.inactiveColor,
shadowColor: shadowColor ?? this.shadowColor,
inactiveBackgroundColor:
inactiveBackgroundColor ?? this.inactiveBackgroundColor,
scaffoldBackgroundColor:
scaffoldBackgroundColor ?? this.scaffoldBackgroundColor,
acrylicBackgroundColor:
acrylicBackgroundColor ?? this.acrylicBackgroundColor,
micaBackgroundColor: micaBackgroundColor ?? this.micaBackgroundColor,
menuColor: menuColor ?? this.menuColor,
cardColor: cardColor ?? this.cardColor,
selectionColor: selectionColor ?? this.selectionColor,
fasterAnimationDuration:
fasterAnimationDuration ?? this.fasterAnimationDuration,
fastAnimationDuration:
fastAnimationDuration ?? this.fastAnimationDuration,
mediumAnimationDuration:
mediumAnimationDuration ?? this.mediumAnimationDuration,
slowAnimationDuration:
slowAnimationDuration ?? this.slowAnimationDuration,
animationCurve: animationCurve ?? this.animationCurve,
buttonTheme: this.buttonTheme.merge(buttonTheme),
bottomNavigationTheme:
this.bottomNavigationTheme.merge(bottomNavigationTheme),
checkboxTheme: this.checkboxTheme.merge(checkboxTheme),
dialogTheme: this.dialogTheme.merge(dialogTheme),
dividerTheme: this.dividerTheme.merge(dividerTheme),
focusTheme: this.focusTheme.merge(focusTheme),
iconTheme: this.iconTheme.merge(iconTheme),
infoBarTheme: this.infoBarTheme.merge(infoBarTheme),
navigationPaneTheme: this.navigationPaneTheme.merge(navigationPaneTheme),
radioButtonTheme: this.radioButtonTheme.merge(radioButtonTheme),
scrollbarTheme: this.scrollbarTheme.merge(scrollbarTheme),
sliderTheme: this.sliderTheme.merge(sliderTheme),
toggleButtonTheme: this.toggleButtonTheme.merge(toggleButtonTheme),
toggleSwitchTheme: this.toggleSwitchTheme.merge(toggleSwitchTheme),
tooltipTheme: this.tooltipTheme.merge(tooltipTheme),
resources: resources ?? this.resources,
);
}