copyWith method
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? snackBarTheme,
- ComicStyle? tooltipTheme,
- ComicStyle? badgeTheme,
- ComicStyle? avatarTheme,
- ComicStyle? optionTheme,
- ComicStyle? stepperTheme,
- ComicStyle? datePickerTheme,
- 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,
),
);