copyWith method

FluentThemeData copyWith({
  1. Brightness? brightness,
  2. Iterable<ThemeExtension>? extensions,
  3. VisualDensity? visualDensity,
  4. Typography? typography,
  5. AccentColor? accentColor,
  6. Color? activeColor,
  7. Color? inactiveColor,
  8. Color? inactiveBackgroundColor,
  9. Color? scaffoldBackgroundColor,
  10. Color? acrylicBackgroundColor,
  11. Color? micaBackgroundColor,
  12. Color? shadowColor,
  13. Color? menuColor,
  14. Color? cardColor,
  15. Color? selectionColor,
  16. Duration? fasterAnimationDuration,
  17. Duration? fastAnimationDuration,
  18. Duration? mediumAnimationDuration,
  19. Duration? slowAnimationDuration,
  20. Curve? animationCurve,
  21. ButtonThemeData? buttonTheme,
  22. BottomNavigationThemeData? bottomNavigationTheme,
  23. CheckboxThemeData? checkboxTheme,
  24. ToggleSwitchThemeData? toggleSwitchTheme,
  25. IconThemeData? iconTheme,
  26. ContentDialogThemeData? dialogTheme,
  27. TooltipThemeData? tooltipTheme,
  28. DividerThemeData? dividerTheme,
  29. NavigationPaneThemeData? navigationPaneTheme,
  30. RadioButtonThemeData? radioButtonTheme,
  31. ToggleButtonThemeData? toggleButtonTheme,
  32. SliderThemeData? sliderTheme,
  33. InfoBarThemeData? infoBarTheme,
  34. FocusThemeData? focusTheme,
  35. ScrollbarThemeData? scrollbarTheme,
  36. 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,
  );
}