copyWith method

ExpressiveThemeData copyWith({
  1. ExpressiveExpression? expression,
  2. ExpressiveColorScheme? colors,
  3. ExpressiveTextTheme? type,
  4. ExpressiveShapes? shapes,
  5. ExpressiveDensity? density,
  6. ExpressiveMotion? motion,
  7. ExpressiveStatusColors? status,
  8. ExpressiveComponentThemeData? buttonTheme,
  9. ExpressiveComponentThemeData? iconButtonTheme,
  10. ExpressiveComponentThemeData? segmentedButtonTheme,
  11. ExpressiveComponentThemeData? chipTheme,
  12. ExpressiveComponentThemeData? listTileTheme,
  13. ExpressiveComponentThemeData? appBarTheme,
  14. ExpressiveComponentThemeData? menuTheme,
  15. ExpressiveComponentThemeData? snackBarTheme,
  16. ExpressiveComponentThemeData? dialogTheme,
  17. ExpressiveComponentThemeData? textFieldTheme,
  18. ExpressiveComponentThemeData? cardTheme,
  19. ExpressiveComponentThemeData? floatingActionButtonTheme,
  20. ExpressiveComponentThemeData? splitButtonTheme,
  21. ExpressiveComponentThemeData? checkboxTheme,
  22. ExpressiveComponentThemeData? radioTheme,
  23. ExpressiveComponentThemeData? switchTheme,
  24. ExpressiveComponentThemeData? sliderTheme,
  25. ExpressiveComponentThemeData? numberFieldTheme,
  26. ExpressiveComponentThemeData? inputOtpTheme,
  27. ExpressiveComponentThemeData? selectTheme,
  28. ExpressiveComponentThemeData? searchTheme,
  29. ExpressiveComponentThemeData? tooltipTheme,
  30. ExpressiveComponentThemeData? popoverTheme,
  31. ExpressiveComponentThemeData? bottomSheetTheme,
  32. ExpressiveComponentThemeData? datePickerTheme,
  33. ExpressiveComponentThemeData? timePickerTheme,
  34. ExpressiveComponentThemeData? badgeTheme,
  35. ExpressiveComponentThemeData? avatarTheme,
  36. ExpressiveComponentThemeData? optionTheme,
  37. ExpressiveComponentThemeData? messageBubbleTheme,
  38. ExpressiveComponentThemeData? bannerTheme,
  39. ExpressiveComponentThemeData? toolbarTheme,
  40. ExpressiveComponentThemeData? tabTheme,
  41. ExpressiveComponentThemeData? tabBarTheme,
  42. ExpressiveComponentThemeData? navigationItemTheme,
  43. ExpressiveComponentThemeData? navigationRailTheme,
  44. ExpressiveComponentThemeData? navigationBarTheme,
  45. ExpressiveComponentThemeData? ratingTheme,
  46. ExpressiveComponentThemeData? loadingIndicatorTheme,
  47. ExpressiveComponentThemeData? statusViewTheme,
  48. ExpressiveComponentThemeData? skeletonTheme,
  49. ExpressiveComponentThemeData? imageTheme,
  50. ExpressiveComponentThemeData? progressIndicatorTheme,
  51. ExpressiveComponentThemeData? meterTheme,
  52. ExpressiveComponentThemeData? stepProgressTheme,
  53. ExpressiveComponentThemeData? chartTheme,
  54. ExpressiveComponentThemeData? pageDotsTheme,
  55. ExpressiveComponentThemeData? carouselTheme,
  56. 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,
);