copyWith method

ComicThemeData copyWith({
  1. ComicColors? colors,
  2. double? width,
  3. bool? onDots,
  4. @Deprecated("Comic is square: only speech and heads are round (law 2). Give one part its own corner through its style's " 'shape instead. This feature was deprecated after v0.2.0.') ComicShapes? shapes,
  5. ComicStrokes? strokes,
  6. ComicDensity? density,
  7. ComicTypeface? typeface,
  8. ComicComponentThemes? components,
  9. @Deprecated("Comic's motion is a quick cut and a small pop; Reduce Motion turns it to cuts (ComicMotion.still) by itself. " 'This feature was deprecated after v0.2.0.') ComicMotion? motion,
  10. ComicTones? tones,
  11. ComicStyle? filledButtonTheme,
  12. ComicStyle? buttonTheme,
  13. ComicStyle? textButtonTheme,
  14. ComicStyle? iconButtonTheme,
  15. ComicStyle? checkboxTheme,
  16. ComicStyle? radioTheme,
  17. ComicStyle? switchTheme,
  18. ComicStyle? textFieldTheme,
  19. ComicStyle? chipTheme,
  20. ComicStyle? sliderTheme,
  21. ComicStyle? segmentedButtonTheme,
  22. ComicStyle? cardTheme,
  23. ComicStyle? dialogTheme,
  24. ComicStyle? sheetTheme,
  25. ComicStyle? menuTheme,
  26. ComicStyle? snackBarTheme,
  27. ComicStyle? tooltipTheme,
  28. ComicStyle? badgeTheme,
  29. ComicStyle? avatarTheme,
  30. ComicStyle? optionTheme,
  31. ComicStyle? stepperTheme,
  32. ComicStyle? datePickerTheme,
  33. ComicStyle? timePickerTheme,
})

Copies supplied palette, typography, motion and component settings.

Implementation

ComicThemeData copyWith({
  ComicColors? colors,
  double? width,
  bool? onDots,
  @Deprecated(
    "Comic is square: only speech and heads are round (law 2). Give one part its own corner through its style's "
    'shape instead. This feature was deprecated after v0.2.0.',
  )
  ComicShapes? shapes,
  ComicStrokes? strokes,
  ComicDensity? density,
  ComicTypeface? typeface,
  ComicComponentThemes? components,
  @Deprecated(
    "Comic's motion is a quick cut and a small pop; Reduce Motion turns it to cuts (ComicMotion.still) by itself. "
    'This feature was deprecated after v0.2.0.',
  )
  ComicMotion? motion,
  ComicTones? tones,
  ComicStyle? filledButtonTheme,
  ComicStyle? buttonTheme,
  ComicStyle? textButtonTheme,
  ComicStyle? iconButtonTheme,
  ComicStyle? checkboxTheme,
  ComicStyle? radioTheme,
  ComicStyle? switchTheme,
  ComicStyle? textFieldTheme,
  ComicStyle? chipTheme,
  ComicStyle? sliderTheme,
  ComicStyle? segmentedButtonTheme,
  ComicStyle? cardTheme,
  ComicStyle? dialogTheme,
  ComicStyle? sheetTheme,
  ComicStyle? menuTheme,
  ComicStyle? snackBarTheme,
  ComicStyle? tooltipTheme,
  ComicStyle? badgeTheme,
  ComicStyle? avatarTheme,
  ComicStyle? optionTheme,
  ComicStyle? stepperTheme,
  ComicStyle? datePickerTheme,
  ComicStyle? timePickerTheme,
}) => ComicThemeData._(
  id,
  _palette,
  (colors ?? this.colors).copyWith(status: tones),
  width ?? this.width,
  onDots ?? this.onDots,
  shapes: shapes ?? this.shapes,
  strokes: strokes ?? this.strokes,
  density: density ?? this.density,
  typeface: typeface ?? this.typeface,
  motion: motion ?? this.motion,
  components: (components ?? this.components).copyWith(
    actButton: filledButtonTheme,
    lineButton: buttonTheme,
    quietButton: textButtonTheme,
    iconButton: iconButtonTheme,
    checkbox: checkboxTheme,
    radio: radioTheme,
    switchTheme: switchTheme,
    textField: textFieldTheme,
    chip: chipTheme,
    slider: sliderTheme,
    segmentedButton: segmentedButtonTheme,
    card: cardTheme,
    dialog: dialogTheme,
    sheet: sheetTheme,
    menu: menuTheme,
    snackBar: snackBarTheme,
    tooltip: tooltipTheme,
    badge: badgeTheme,
    avatar: avatarTheme,
    option: optionTheme,
    stepper: stepperTheme,
    datePicker: datePickerTheme,
    timePicker: timePickerTheme,
  ),
);