copyWith method
ExpressiveThemeData
copyWith({
- ExpressiveExpression? expression,
- ExpressiveColorScheme? colors,
- ExpressiveTextTheme? type,
- ExpressiveShapes? shapes,
- ExpressiveDensity? density,
- ExpressiveMotion? motion,
- ExpressiveStatusColors? status,
- ExpressiveComponentThemeData? buttonTheme,
- ExpressiveComponentThemeData? iconButtonTheme,
- ExpressiveComponentThemeData? segmentedButtonTheme,
- ExpressiveComponentThemeData? chipTheme,
- ExpressiveComponentThemeData? listTileTheme,
- ExpressiveComponentThemeData? appBarTheme,
- ExpressiveComponentThemeData? snackBarTheme,
- ExpressiveComponentThemeData? dialogTheme,
- ExpressiveComponentThemeData? textFieldTheme,
- ExpressiveComponentThemeData? cardTheme,
- ExpressiveComponentThemeData? floatingActionButtonTheme,
- ExpressiveComponentThemeData? splitButtonTheme,
- ExpressiveComponentThemeData? checkboxTheme,
- ExpressiveComponentThemeData? radioTheme,
- ExpressiveComponentThemeData? switchTheme,
- ExpressiveComponentThemeData? sliderTheme,
- ExpressiveComponentThemeData? numberFieldTheme,
- ExpressiveComponentThemeData? inputOtpTheme,
- ExpressiveComponentThemeData? selectTheme,
- ExpressiveComponentThemeData? searchTheme,
- ExpressiveComponentThemeData? tooltipTheme,
- ExpressiveComponentThemeData? popoverTheme,
- ExpressiveComponentThemeData? bottomSheetTheme,
- ExpressiveComponentThemeData? datePickerTheme,
- ExpressiveComponentThemeData? timePickerTheme,
- ExpressiveComponentThemeData? badgeTheme,
- ExpressiveComponentThemeData? avatarTheme,
- ExpressiveComponentThemeData? optionTheme,
- ExpressiveComponentThemeData? messageBubbleTheme,
- ExpressiveComponentThemeData? bannerTheme,
- ExpressiveComponentThemeData? toolbarTheme,
- ExpressiveComponentThemeData? tabTheme,
- ExpressiveComponentThemeData? tabBarTheme,
- ExpressiveComponentThemeData? ratingTheme,
- ExpressiveComponentThemeData? loadingIndicatorTheme,
- ExpressiveComponentThemeData? statusViewTheme,
- ExpressiveComponentThemeData? skeletonTheme,
- ExpressiveComponentThemeData? imageTheme,
- ExpressiveComponentThemeData? progressIndicatorTheme,
- ExpressiveComponentThemeData? meterTheme,
- ExpressiveComponentThemeData? stepProgressTheme,
- ExpressiveComponentThemeData? chartTheme,
- ExpressiveComponentThemeData? pageDotsTheme,
- ExpressiveComponentThemeData? carouselTheme,
- ExpressiveComponentThemeData? tableTheme,
This theme with the parts given replaced: an app's own override of
one foundation, or a subtree's (mount it on an ExpressiveTheme). A
named component theme (chipTheme:) replaces that one.
Implementation
ExpressiveThemeData copyWith({
ExpressiveExpression? expression,
ExpressiveColorScheme? colors,
ExpressiveTextTheme? type,
ExpressiveShapes? shapes,
ExpressiveDensity? density,
ExpressiveMotion? motion,
ExpressiveStatusColors? status,
ExpressiveComponentThemeData? buttonTheme,
ExpressiveComponentThemeData? iconButtonTheme,
ExpressiveComponentThemeData? segmentedButtonTheme,
ExpressiveComponentThemeData? chipTheme,
ExpressiveComponentThemeData? listTileTheme,
ExpressiveComponentThemeData? appBarTheme,
ExpressiveComponentThemeData? menuTheme,
ExpressiveComponentThemeData? snackBarTheme,
ExpressiveComponentThemeData? dialogTheme,
ExpressiveComponentThemeData? textFieldTheme,
ExpressiveComponentThemeData? cardTheme,
ExpressiveComponentThemeData? floatingActionButtonTheme,
ExpressiveComponentThemeData? splitButtonTheme,
ExpressiveComponentThemeData? checkboxTheme,
ExpressiveComponentThemeData? radioTheme,
ExpressiveComponentThemeData? switchTheme,
ExpressiveComponentThemeData? sliderTheme,
ExpressiveComponentThemeData? numberFieldTheme,
ExpressiveComponentThemeData? inputOtpTheme,
ExpressiveComponentThemeData? selectTheme,
ExpressiveComponentThemeData? searchTheme,
ExpressiveComponentThemeData? tooltipTheme,
ExpressiveComponentThemeData? popoverTheme,
ExpressiveComponentThemeData? bottomSheetTheme,
ExpressiveComponentThemeData? datePickerTheme,
ExpressiveComponentThemeData? timePickerTheme,
ExpressiveComponentThemeData? badgeTheme,
ExpressiveComponentThemeData? avatarTheme,
ExpressiveComponentThemeData? optionTheme,
ExpressiveComponentThemeData? messageBubbleTheme,
ExpressiveComponentThemeData? bannerTheme,
ExpressiveComponentThemeData? toolbarTheme,
ExpressiveComponentThemeData? tabTheme,
ExpressiveComponentThemeData? tabBarTheme,
ExpressiveComponentThemeData? navigationItemTheme,
ExpressiveComponentThemeData? navigationRailTheme,
ExpressiveComponentThemeData? navigationBarTheme,
ExpressiveComponentThemeData? ratingTheme,
ExpressiveComponentThemeData? loadingIndicatorTheme,
ExpressiveComponentThemeData? statusViewTheme,
ExpressiveComponentThemeData? skeletonTheme,
ExpressiveComponentThemeData? imageTheme,
ExpressiveComponentThemeData? progressIndicatorTheme,
ExpressiveComponentThemeData? meterTheme,
ExpressiveComponentThemeData? stepProgressTheme,
ExpressiveComponentThemeData? chartTheme,
ExpressiveComponentThemeData? pageDotsTheme,
ExpressiveComponentThemeData? carouselTheme,
ExpressiveComponentThemeData? tableTheme,
}) => ExpressiveThemeData(
id: id,
brightness: brightness,
expression: expression ?? this.expression,
colors: colors ?? this.colors,
type: type ?? this.type,
shapes: shapes ?? this.shapes,
density: density ?? _density,
motion: motion ?? this.motion,
status: status ?? _status,
buttonTheme: buttonTheme ?? this.buttonTheme,
iconButtonTheme: iconButtonTheme ?? this.iconButtonTheme,
segmentedButtonTheme: segmentedButtonTheme ?? this.segmentedButtonTheme,
chipTheme: chipTheme ?? this.chipTheme,
listTileTheme: listTileTheme ?? this.listTileTheme,
appBarTheme: appBarTheme ?? this.appBarTheme,
menuTheme: menuTheme ?? this.menuTheme,
snackBarTheme: snackBarTheme ?? this.snackBarTheme,
dialogTheme: dialogTheme ?? this.dialogTheme,
textFieldTheme: textFieldTheme ?? this.textFieldTheme,
cardTheme: cardTheme ?? this.cardTheme,
floatingActionButtonTheme:
floatingActionButtonTheme ?? this.floatingActionButtonTheme,
splitButtonTheme: splitButtonTheme ?? this.splitButtonTheme,
checkboxTheme: checkboxTheme ?? this.checkboxTheme,
radioTheme: radioTheme ?? this.radioTheme,
switchTheme: switchTheme ?? this.switchTheme,
sliderTheme: sliderTheme ?? this.sliderTheme,
numberFieldTheme: numberFieldTheme ?? this.numberFieldTheme,
inputOtpTheme: inputOtpTheme ?? this.inputOtpTheme,
selectTheme: selectTheme ?? this.selectTheme,
searchTheme: searchTheme ?? this.searchTheme,
tooltipTheme: tooltipTheme ?? this.tooltipTheme,
popoverTheme: popoverTheme ?? this.popoverTheme,
bottomSheetTheme: bottomSheetTheme ?? this.bottomSheetTheme,
datePickerTheme: datePickerTheme ?? this.datePickerTheme,
timePickerTheme: timePickerTheme ?? this.timePickerTheme,
badgeTheme: badgeTheme ?? this.badgeTheme,
avatarTheme: avatarTheme ?? this.avatarTheme,
optionTheme: optionTheme ?? this.optionTheme,
messageBubbleTheme: messageBubbleTheme ?? this.messageBubbleTheme,
bannerTheme: bannerTheme ?? this.bannerTheme,
toolbarTheme: toolbarTheme ?? this.toolbarTheme,
tabTheme: tabTheme ?? this.tabTheme,
tabBarTheme: tabBarTheme ?? this.tabBarTheme,
navigationItemTheme: navigationItemTheme ?? this.navigationItemTheme,
navigationRailTheme: navigationRailTheme ?? this.navigationRailTheme,
navigationBarTheme: navigationBarTheme ?? this.navigationBarTheme,
ratingTheme: ratingTheme ?? this.ratingTheme,
tableTheme: tableTheme ?? this.tableTheme,
chartTheme: chartTheme ?? this.chartTheme,
pageDotsTheme: pageDotsTheme ?? this.pageDotsTheme,
carouselTheme: carouselTheme ?? this.carouselTheme,
stepProgressTheme: stepProgressTheme ?? this.stepProgressTheme,
meterTheme: meterTheme ?? this.meterTheme,
progressIndicatorTheme:
progressIndicatorTheme ?? this.progressIndicatorTheme,
imageTheme: imageTheme ?? this.imageTheme,
skeletonTheme: skeletonTheme ?? this.skeletonTheme,
statusViewTheme: statusViewTheme ?? this.statusViewTheme,
loadingIndicatorTheme: loadingIndicatorTheme ?? this.loadingIndicatorTheme,
);