copyWith method
SACThemeConfig
copyWith({
- Color? primary,
- Color? primaryLight,
- Color? primaryDark,
- Color? secondary,
- Color? secondaryLight,
- Color? secondaryDark,
- Color? error,
- Color? errorLight,
- Color? errorDark,
- Color? success,
- Color? successLight,
- Color? successDark,
- Color? backgroundLight,
- Color? surfaceLight,
- Color? borderLight,
- Color? textPrimaryLight,
- Color? textMutedLight,
- Color? backgroundDark,
- Color? surfaceDark,
- Color? borderDark,
- Color? textPrimaryDark,
- Color? textMutedDark,
- Color? lightRed,
- Color? purple,
- Color? grey,
- Color? darkGrey,
- Color? scaffoldBackgroundLight,
- Color? scaffoldBackgroundDark,
- Color? appBarBackgroundLight,
- Color? appBarBackgroundDark,
- Color? appBarForegroundLight,
- Color? appBarForegroundDark,
- double? appBarElevation,
- bool? appBarCenterTitle,
- TextStyle? appBarTitleTextStyle,
- IconThemeData? appBarIconTheme,
- Color? drawerBackgroundLight,
- Color? drawerBackgroundDark,
- double? drawerWidth,
- double? drawerElevation,
- Color? fabBackgroundLight,
- Color? fabBackgroundDark,
- Color? fabForegroundLight,
- Color? fabForegroundDark,
- double? fabElevation,
- ShapeBorder? fabShape,
- ButtonStyle? elevatedButtonStyle,
- ButtonStyle? outlinedButtonStyle,
- ButtonStyle? textButtonStyle,
- ButtonStyle? filledButtonStyle,
- ButtonStyle? iconButtonStyle,
- Color? cardColorLight,
- Color? cardColorDark,
- double? cardElevation,
- ShapeBorder? cardShape,
- EdgeInsetsGeometry? cardMargin,
- Color? dialogBackgroundLight,
- Color? dialogBackgroundDark,
- double? dialogElevation,
- ShapeBorder? dialogShape,
- TextStyle? dialogTitleStyle,
- TextStyle? dialogContentStyle,
- Color? bottomSheetBackgroundLight,
- Color? bottomSheetBackgroundDark,
- double? bottomSheetElevation,
- ShapeBorder? bottomSheetShape,
- Color? bottomSheetDragHandleColor,
- Color? snackBarBackgroundLight,
- Color? snackBarBackgroundDark,
- Color? snackBarActionColor,
- SnackBarBehavior? snackBarBehavior,
- Color? inputFillColorLight,
- Color? inputFillColorDark,
- Color? inputBorderColor,
- Color? inputFocusedBorderColor,
- Color? inputErrorBorderColor,
- TextStyle? inputLabelStyle,
- TextStyle? inputHintStyle,
- double? inputBorderRadius,
- Color? checkboxFillColor,
- Color? radioFillColor,
- Color? switchActiveColor,
- Color? switchInactiveColor,
- Color? switchTrackColor,
- Color? sliderActiveColor,
- Color? sliderInactiveColor,
- Color? sliderThumbColor,
- Color? progressIndicatorColor,
- Color? progressIndicatorBackgroundColor,
- double? circularProgressStrokeWidth,
- Color? tooltipBackgroundColor,
- TextStyle? tooltipTextStyle,
- EdgeInsetsGeometry? tooltipPadding,
- Color? dividerColor,
- double? dividerThickness,
- double? dividerIndent,
- Color? listTileIconColor,
- TextStyle? listTileTitleStyle,
- TextStyle? listTileSubtitleStyle,
- Color? listTileSelectedColor,
- Color? tabBarIndicatorColor,
- Color? tabBarLabelColor,
- Color? tabBarUnselectedLabelColor,
- double? tabBarIndicatorWeight,
- Color? dataTableHeadingRowColor,
- Color? dataTableDataRowColor,
- double? dataTableDividerThickness,
- Color? chipBackgroundLight,
- Color? chipBackgroundDark,
- TextStyle? chipLabelStyle,
- Color? chipDeleteIconColor,
- Color? chipSelectedColor,
- Color? badgeBackgroundColor,
- Color? badgeTextColor,
- Color? searchBarBackgroundLight,
- Color? searchBarBackgroundDark,
- double? searchBarElevation,
- TextStyle? searchBarHintStyle,
- Color? segmentedButtonSelectedColor,
- Color? segmentedButtonForegroundColor,
- Color? popupMenuBackgroundLight,
- Color? popupMenuBackgroundDark,
- double? popupMenuElevation,
- ShapeBorder? popupMenuShape,
- Color? expansionTileBackgroundColor,
- Color? expansionTileCollapsedBackgroundColor,
- Color? expansionTileIconColor,
- String? fontFamily,
- TextStyle? displayLarge,
- TextStyle? displayMedium,
- TextStyle? displaySmall,
- TextStyle? headlineLarge,
- TextStyle? headlineMedium,
- TextStyle? headlineSmall,
- TextStyle? titleLarge,
- TextStyle? titleMedium,
- TextStyle? titleSmall,
- TextStyle? bodyLarge,
- TextStyle? bodyMedium,
- TextStyle? bodySmall,
- TextStyle? labelLarge,
- TextStyle? labelMedium,
- TextStyle? labelSmall,
- Color? splashColor,
- Color? highlightColor,
- Color? hoverColor,
- Color? focusColor,
- Color? disabledColor,
- Color? shadowColor,
- VisualDensity? visualDensity,
- MaterialTapTargetSize? materialTapTargetSize,
Returns a new config overriding selected fields.
Implementation
SACThemeConfig copyWith({
Color? primary,
Color? primaryLight,
Color? primaryDark,
Color? secondary,
Color? secondaryLight,
Color? secondaryDark,
Color? error,
Color? errorLight,
Color? errorDark,
Color? success,
Color? successLight,
Color? successDark,
Color? backgroundLight,
Color? surfaceLight,
Color? borderLight,
Color? textPrimaryLight,
Color? textMutedLight,
Color? backgroundDark,
Color? surfaceDark,
Color? borderDark,
Color? textPrimaryDark,
Color? textMutedDark,
Color? lightRed,
Color? purple,
Color? grey,
Color? darkGrey,
Color? scaffoldBackgroundLight,
Color? scaffoldBackgroundDark,
Color? appBarBackgroundLight,
Color? appBarBackgroundDark,
Color? appBarForegroundLight,
Color? appBarForegroundDark,
double? appBarElevation,
bool? appBarCenterTitle,
TextStyle? appBarTitleTextStyle,
IconThemeData? appBarIconTheme,
Color? bottomNavBackgroundLight,
Color? bottomNavBackgroundDark,
Color? bottomNavSelectedColor,
Color? bottomNavUnselectedColor,
double? bottomNavElevation,
BottomNavigationBarType? bottomNavType,
Color? navigationBarBackgroundLight,
Color? navigationBarBackgroundDark,
Color? navigationBarIndicatorColor,
double? navigationBarHeight,
Color? navigationRailBackgroundLight,
Color? navigationRailBackgroundDark,
Color? navigationRailSelectedColor,
Color? navigationRailUnselectedColor,
Color? drawerBackgroundLight,
Color? drawerBackgroundDark,
double? drawerWidth,
double? drawerElevation,
Color? fabBackgroundLight,
Color? fabBackgroundDark,
Color? fabForegroundLight,
Color? fabForegroundDark,
double? fabElevation,
ShapeBorder? fabShape,
ButtonStyle? elevatedButtonStyle,
ButtonStyle? outlinedButtonStyle,
ButtonStyle? textButtonStyle,
ButtonStyle? filledButtonStyle,
ButtonStyle? iconButtonStyle,
Color? cardColorLight,
Color? cardColorDark,
double? cardElevation,
ShapeBorder? cardShape,
EdgeInsetsGeometry? cardMargin,
Color? dialogBackgroundLight,
Color? dialogBackgroundDark,
double? dialogElevation,
ShapeBorder? dialogShape,
TextStyle? dialogTitleStyle,
TextStyle? dialogContentStyle,
Color? bottomSheetBackgroundLight,
Color? bottomSheetBackgroundDark,
double? bottomSheetElevation,
ShapeBorder? bottomSheetShape,
Color? bottomSheetDragHandleColor,
Color? snackBarBackgroundLight,
Color? snackBarBackgroundDark,
Color? snackBarActionColor,
SnackBarBehavior? snackBarBehavior,
Color? inputFillColorLight,
Color? inputFillColorDark,
Color? inputBorderColor,
Color? inputFocusedBorderColor,
Color? inputErrorBorderColor,
TextStyle? inputLabelStyle,
TextStyle? inputHintStyle,
double? inputBorderRadius,
Color? checkboxFillColor,
Color? radioFillColor,
Color? switchActiveColor,
Color? switchInactiveColor,
Color? switchTrackColor,
Color? sliderActiveColor,
Color? sliderInactiveColor,
Color? sliderThumbColor,
Color? progressIndicatorColor,
Color? progressIndicatorBackgroundColor,
double? circularProgressStrokeWidth,
Color? tooltipBackgroundColor,
TextStyle? tooltipTextStyle,
EdgeInsetsGeometry? tooltipPadding,
Color? dividerColor,
double? dividerThickness,
double? dividerIndent,
Color? listTileIconColor,
TextStyle? listTileTitleStyle,
TextStyle? listTileSubtitleStyle,
Color? listTileSelectedColor,
Color? tabBarIndicatorColor,
Color? tabBarLabelColor,
Color? tabBarUnselectedLabelColor,
double? tabBarIndicatorWeight,
Color? dataTableHeadingRowColor,
Color? dataTableDataRowColor,
double? dataTableDividerThickness,
Color? chipBackgroundLight,
Color? chipBackgroundDark,
TextStyle? chipLabelStyle,
Color? chipDeleteIconColor,
Color? chipSelectedColor,
Color? badgeBackgroundColor,
Color? badgeTextColor,
Color? searchBarBackgroundLight,
Color? searchBarBackgroundDark,
double? searchBarElevation,
TextStyle? searchBarHintStyle,
Color? segmentedButtonSelectedColor,
Color? segmentedButtonForegroundColor,
Color? popupMenuBackgroundLight,
Color? popupMenuBackgroundDark,
double? popupMenuElevation,
ShapeBorder? popupMenuShape,
Color? expansionTileBackgroundColor,
Color? expansionTileCollapsedBackgroundColor,
Color? expansionTileIconColor,
String? fontFamily,
TextStyle? displayLarge,
TextStyle? displayMedium,
TextStyle? displaySmall,
TextStyle? headlineLarge,
TextStyle? headlineMedium,
TextStyle? headlineSmall,
TextStyle? titleLarge,
TextStyle? titleMedium,
TextStyle? titleSmall,
TextStyle? bodyLarge,
TextStyle? bodyMedium,
TextStyle? bodySmall,
TextStyle? labelLarge,
TextStyle? labelMedium,
TextStyle? labelSmall,
Color? splashColor,
Color? highlightColor,
Color? hoverColor,
Color? focusColor,
Color? disabledColor,
Color? shadowColor,
VisualDensity? visualDensity,
MaterialTapTargetSize? materialTapTargetSize,
}) {
return SACThemeConfig(
primary: primary ?? this.primary,
primaryLight: primaryLight ?? this.primaryLight,
primaryDark: primaryDark ?? this.primaryDark,
secondary: secondary ?? this.secondary,
secondaryLight: secondaryLight ?? this.secondaryLight,
secondaryDark: secondaryDark ?? this.secondaryDark,
error: error ?? this.error,
errorLight: errorLight ?? this.errorLight,
errorDark: errorDark ?? this.errorDark,
success: success ?? this.success,
successLight: successLight ?? this.successLight,
successDark: successDark ?? this.successDark,
backgroundLight: backgroundLight ?? this.backgroundLight,
surfaceLight: surfaceLight ?? this.surfaceLight,
borderLight: borderLight ?? this.borderLight,
textPrimaryLight: textPrimaryLight ?? this.textPrimaryLight,
textMutedLight: textMutedLight ?? this.textMutedLight,
backgroundDark: backgroundDark ?? this.backgroundDark,
surfaceDark: surfaceDark ?? this.surfaceDark,
borderDark: borderDark ?? this.borderDark,
textPrimaryDark: textPrimaryDark ?? this.textPrimaryDark,
textMutedDark: textMutedDark ?? this.textMutedDark,
lightRed: lightRed ?? this.lightRed,
purple: purple ?? this.purple,
grey: grey ?? this.grey,
darkGrey: darkGrey ?? this.darkGrey,
scaffoldBackgroundLight:
scaffoldBackgroundLight ?? this.scaffoldBackgroundLight,
scaffoldBackgroundDark:
scaffoldBackgroundDark ?? this.scaffoldBackgroundDark,
appBarBackgroundLight:
appBarBackgroundLight ?? this.appBarBackgroundLight,
appBarBackgroundDark: appBarBackgroundDark ?? this.appBarBackgroundDark,
appBarForegroundLight:
appBarForegroundLight ?? this.appBarForegroundLight,
appBarForegroundDark: appBarForegroundDark ?? this.appBarForegroundDark,
appBarElevation: appBarElevation ?? this.appBarElevation,
appBarCenterTitle: appBarCenterTitle ?? this.appBarCenterTitle,
appBarTitleTextStyle: appBarTitleTextStyle ?? this.appBarTitleTextStyle,
appBarIconTheme: appBarIconTheme ?? this.appBarIconTheme,
bottomNavBackgroundLight:
bottomNavBackgroundLight ?? this.bottomNavBackgroundLight,
bottomNavBackgroundDark:
bottomNavBackgroundDark ?? this.bottomNavBackgroundDark,
bottomNavSelectedColor:
bottomNavSelectedColor ?? this.bottomNavSelectedColor,
bottomNavUnselectedColor:
bottomNavUnselectedColor ?? this.bottomNavUnselectedColor,
bottomNavElevation: bottomNavElevation ?? this.bottomNavElevation,
bottomNavType: bottomNavType ?? this.bottomNavType,
navigationBarBackgroundLight:
navigationBarBackgroundLight ?? this.navigationBarBackgroundLight,
navigationBarBackgroundDark:
navigationBarBackgroundDark ?? this.navigationBarBackgroundDark,
navigationBarIndicatorColor:
navigationBarIndicatorColor ?? this.navigationBarIndicatorColor,
navigationBarHeight: navigationBarHeight ?? this.navigationBarHeight,
navigationRailBackgroundLight:
navigationRailBackgroundLight ?? this.navigationRailBackgroundLight,
navigationRailBackgroundDark:
navigationRailBackgroundDark ?? this.navigationRailBackgroundDark,
navigationRailSelectedColor:
navigationRailSelectedColor ?? this.navigationRailSelectedColor,
navigationRailUnselectedColor:
navigationRailUnselectedColor ?? this.navigationRailUnselectedColor,
drawerBackgroundLight:
drawerBackgroundLight ?? this.drawerBackgroundLight,
drawerBackgroundDark: drawerBackgroundDark ?? this.drawerBackgroundDark,
drawerWidth: drawerWidth ?? this.drawerWidth,
drawerElevation: drawerElevation ?? this.drawerElevation,
fabBackgroundLight: fabBackgroundLight ?? this.fabBackgroundLight,
fabBackgroundDark: fabBackgroundDark ?? this.fabBackgroundDark,
fabForegroundLight: fabForegroundLight ?? this.fabForegroundLight,
fabForegroundDark: fabForegroundDark ?? this.fabForegroundDark,
fabElevation: fabElevation ?? this.fabElevation,
fabShape: fabShape ?? this.fabShape,
elevatedButtonStyle: elevatedButtonStyle ?? this.elevatedButtonStyle,
outlinedButtonStyle: outlinedButtonStyle ?? this.outlinedButtonStyle,
textButtonStyle: textButtonStyle ?? this.textButtonStyle,
filledButtonStyle: filledButtonStyle ?? this.filledButtonStyle,
iconButtonStyle: iconButtonStyle ?? this.iconButtonStyle,
cardColorLight: cardColorLight ?? this.cardColorLight,
cardColorDark: cardColorDark ?? this.cardColorDark,
cardElevation: cardElevation ?? this.cardElevation,
cardShape: cardShape ?? this.cardShape,
cardMargin: cardMargin ?? this.cardMargin,
dialogBackgroundLight:
dialogBackgroundLight ?? this.dialogBackgroundLight,
dialogBackgroundDark: dialogBackgroundDark ?? this.dialogBackgroundDark,
dialogElevation: dialogElevation ?? this.dialogElevation,
dialogShape: dialogShape ?? this.dialogShape,
dialogTitleStyle: dialogTitleStyle ?? this.dialogTitleStyle,
dialogContentStyle: dialogContentStyle ?? this.dialogContentStyle,
bottomSheetBackgroundLight:
bottomSheetBackgroundLight ?? this.bottomSheetBackgroundLight,
bottomSheetBackgroundDark:
bottomSheetBackgroundDark ?? this.bottomSheetBackgroundDark,
bottomSheetElevation: bottomSheetElevation ?? this.bottomSheetElevation,
bottomSheetShape: bottomSheetShape ?? this.bottomSheetShape,
bottomSheetDragHandleColor:
bottomSheetDragHandleColor ?? this.bottomSheetDragHandleColor,
snackBarBackgroundLight:
snackBarBackgroundLight ?? this.snackBarBackgroundLight,
snackBarBackgroundDark:
snackBarBackgroundDark ?? this.snackBarBackgroundDark,
snackBarActionColor: snackBarActionColor ?? this.snackBarActionColor,
snackBarBehavior: snackBarBehavior ?? this.snackBarBehavior,
inputFillColorLight: inputFillColorLight ?? this.inputFillColorLight,
inputFillColorDark: inputFillColorDark ?? this.inputFillColorDark,
inputBorderColor: inputBorderColor ?? this.inputBorderColor,
inputFocusedBorderColor:
inputFocusedBorderColor ?? this.inputFocusedBorderColor,
inputErrorBorderColor:
inputErrorBorderColor ?? this.inputErrorBorderColor,
inputLabelStyle: inputLabelStyle ?? this.inputLabelStyle,
inputHintStyle: inputHintStyle ?? this.inputHintStyle,
inputBorderRadius: inputBorderRadius ?? this.inputBorderRadius,
checkboxFillColor: checkboxFillColor ?? this.checkboxFillColor,
radioFillColor: radioFillColor ?? this.radioFillColor,
switchActiveColor: switchActiveColor ?? this.switchActiveColor,
switchInactiveColor: switchInactiveColor ?? this.switchInactiveColor,
switchTrackColor: switchTrackColor ?? this.switchTrackColor,
sliderActiveColor: sliderActiveColor ?? this.sliderActiveColor,
sliderInactiveColor: sliderInactiveColor ?? this.sliderInactiveColor,
sliderThumbColor: sliderThumbColor ?? this.sliderThumbColor,
progressIndicatorColor:
progressIndicatorColor ?? this.progressIndicatorColor,
progressIndicatorBackgroundColor:
progressIndicatorBackgroundColor ??
this.progressIndicatorBackgroundColor,
circularProgressStrokeWidth:
circularProgressStrokeWidth ?? this.circularProgressStrokeWidth,
tooltipBackgroundColor:
tooltipBackgroundColor ?? this.tooltipBackgroundColor,
tooltipTextStyle: tooltipTextStyle ?? this.tooltipTextStyle,
tooltipPadding: tooltipPadding ?? this.tooltipPadding,
dividerColor: dividerColor ?? this.dividerColor,
dividerThickness: dividerThickness ?? this.dividerThickness,
dividerIndent: dividerIndent ?? this.dividerIndent,
listTileIconColor: listTileIconColor ?? this.listTileIconColor,
listTileTitleStyle: listTileTitleStyle ?? this.listTileTitleStyle,
listTileSubtitleStyle:
listTileSubtitleStyle ?? this.listTileSubtitleStyle,
listTileSelectedColor:
listTileSelectedColor ?? this.listTileSelectedColor,
tabBarIndicatorColor: tabBarIndicatorColor ?? this.tabBarIndicatorColor,
tabBarLabelColor: tabBarLabelColor ?? this.tabBarLabelColor,
tabBarUnselectedLabelColor:
tabBarUnselectedLabelColor ?? this.tabBarUnselectedLabelColor,
tabBarIndicatorWeight:
tabBarIndicatorWeight ?? this.tabBarIndicatorWeight,
dataTableHeadingRowColor:
dataTableHeadingRowColor ?? this.dataTableHeadingRowColor,
dataTableDataRowColor:
dataTableDataRowColor ?? this.dataTableDataRowColor,
dataTableDividerThickness:
dataTableDividerThickness ?? this.dataTableDividerThickness,
chipBackgroundLight: chipBackgroundLight ?? this.chipBackgroundLight,
chipBackgroundDark: chipBackgroundDark ?? this.chipBackgroundDark,
chipLabelStyle: chipLabelStyle ?? this.chipLabelStyle,
chipDeleteIconColor: chipDeleteIconColor ?? this.chipDeleteIconColor,
chipSelectedColor: chipSelectedColor ?? this.chipSelectedColor,
badgeBackgroundColor: badgeBackgroundColor ?? this.badgeBackgroundColor,
badgeTextColor: badgeTextColor ?? this.badgeTextColor,
searchBarBackgroundLight:
searchBarBackgroundLight ?? this.searchBarBackgroundLight,
searchBarBackgroundDark:
searchBarBackgroundDark ?? this.searchBarBackgroundDark,
searchBarElevation: searchBarElevation ?? this.searchBarElevation,
searchBarHintStyle: searchBarHintStyle ?? this.searchBarHintStyle,
segmentedButtonSelectedColor:
segmentedButtonSelectedColor ?? this.segmentedButtonSelectedColor,
segmentedButtonForegroundColor:
segmentedButtonForegroundColor ?? this.segmentedButtonForegroundColor,
popupMenuBackgroundLight:
popupMenuBackgroundLight ?? this.popupMenuBackgroundLight,
popupMenuBackgroundDark:
popupMenuBackgroundDark ?? this.popupMenuBackgroundDark,
popupMenuElevation: popupMenuElevation ?? this.popupMenuElevation,
popupMenuShape: popupMenuShape ?? this.popupMenuShape,
expansionTileBackgroundColor:
expansionTileBackgroundColor ?? this.expansionTileBackgroundColor,
expansionTileCollapsedBackgroundColor:
expansionTileCollapsedBackgroundColor ??
this.expansionTileCollapsedBackgroundColor,
expansionTileIconColor:
expansionTileIconColor ?? this.expansionTileIconColor,
fontFamily: fontFamily ?? this.fontFamily,
displayLarge: displayLarge ?? this.displayLarge,
displayMedium: displayMedium ?? this.displayMedium,
displaySmall: displaySmall ?? this.displaySmall,
headlineLarge: headlineLarge ?? this.headlineLarge,
headlineMedium: headlineMedium ?? this.headlineMedium,
headlineSmall: headlineSmall ?? this.headlineSmall,
titleLarge: titleLarge ?? this.titleLarge,
titleMedium: titleMedium ?? this.titleMedium,
titleSmall: titleSmall ?? this.titleSmall,
bodyLarge: bodyLarge ?? this.bodyLarge,
bodyMedium: bodyMedium ?? this.bodyMedium,
bodySmall: bodySmall ?? this.bodySmall,
labelLarge: labelLarge ?? this.labelLarge,
labelMedium: labelMedium ?? this.labelMedium,
labelSmall: labelSmall ?? this.labelSmall,
splashColor: splashColor ?? this.splashColor,
highlightColor: highlightColor ?? this.highlightColor,
hoverColor: hoverColor ?? this.hoverColor,
focusColor: focusColor ?? this.focusColor,
disabledColor: disabledColor ?? this.disabledColor,
shadowColor: shadowColor ?? this.shadowColor,
visualDensity: visualDensity ?? this.visualDensity,
materialTapTargetSize:
materialTapTargetSize ?? this.materialTapTargetSize,
);
}