copyWith method
- MaterialStateProperty<
Color?> ? color, - Color? backgroundColor,
- Color? deleteIconColor,
- Color? disabledColor,
- Color? selectedColor,
- Color? secondarySelectedColor,
- Color? shadowColor,
- Color? surfaceTintColor,
- Color? selectedShadowColor,
- bool? showCheckmark,
- Color? checkmarkColor,
- EdgeInsetsGeometry? labelPadding,
- EdgeInsetsGeometry? padding,
- BorderSide? side,
- OutlinedBorder? shape,
- TextStyle? labelStyle,
- TextStyle? secondaryLabelStyle,
- Brightness? brightness,
- double? elevation,
- double? pressElevation,
- IconThemeData? iconTheme,
- BoxConstraints? avatarBoxConstraints,
- BoxConstraints? deleteIconBoxConstraints,
Creates a copy of this object but with the given fields replaced with the new values.
Implementation
ChipThemeData copyWith({
MaterialStateProperty<Color?>? color,
Color? backgroundColor,
Color? deleteIconColor,
Color? disabledColor,
Color? selectedColor,
Color? secondarySelectedColor,
Color? shadowColor,
Color? surfaceTintColor,
Color? selectedShadowColor,
bool? showCheckmark,
Color? checkmarkColor,
EdgeInsetsGeometry? labelPadding,
EdgeInsetsGeometry? padding,
BorderSide? side,
OutlinedBorder? shape,
TextStyle? labelStyle,
TextStyle? secondaryLabelStyle,
Brightness? brightness,
double? elevation,
double? pressElevation,
IconThemeData? iconTheme,
BoxConstraints? avatarBoxConstraints,
BoxConstraints? deleteIconBoxConstraints,
}) {
return ChipThemeData(
color: color ?? this.color,
backgroundColor: backgroundColor ?? this.backgroundColor,
deleteIconColor: deleteIconColor ?? this.deleteIconColor,
disabledColor: disabledColor ?? this.disabledColor,
selectedColor: selectedColor ?? this.selectedColor,
secondarySelectedColor: secondarySelectedColor ?? this.secondarySelectedColor,
shadowColor: shadowColor ?? this.shadowColor,
surfaceTintColor: surfaceTintColor ?? this.surfaceTintColor,
selectedShadowColor: selectedShadowColor ?? this.selectedShadowColor,
showCheckmark: showCheckmark ?? this.showCheckmark,
checkmarkColor: checkmarkColor ?? this.checkmarkColor,
labelPadding: labelPadding ?? this.labelPadding,
padding: padding ?? this.padding,
side: side ?? this.side,
shape: shape ?? this.shape,
labelStyle: labelStyle ?? this.labelStyle,
secondaryLabelStyle: secondaryLabelStyle ?? this.secondaryLabelStyle,
brightness: brightness ?? this.brightness,
elevation: elevation ?? this.elevation,
pressElevation: pressElevation ?? this.pressElevation,
iconTheme: iconTheme ?? this.iconTheme,
avatarBoxConstraints: avatarBoxConstraints ?? this.avatarBoxConstraints,
deleteIconBoxConstraints: deleteIconBoxConstraints ?? this.deleteIconBoxConstraints,
);
}