copyWith method
ChipThemeData
copyWith({
- Curve? curve,
- Duration? duration,
- IconData? deleteIcon,
- ChipStyle? style,
- ChipStyleByVariant? variantStyle,
- ChipStyleByVariant? dangerStyle,
- ChipStyleByVariant? warningStyle,
- ChipStyleByVariant? successStyle,
- ChipStyleByVariant? infoStyle,
override
Creates a copy of this ChipThemeData but with the given fields replaced with the new values.
Implementation
@override
ChipThemeData copyWith({
Curve? curve,
Duration? duration,
IconData? deleteIcon,
ChipStyle? style,
ChipStyleByVariant? variantStyle,
ChipStyleByVariant? dangerStyle,
ChipStyleByVariant? warningStyle,
ChipStyleByVariant? successStyle,
ChipStyleByVariant? infoStyle,
}) {
return ChipThemeData(
curve: curve ?? this.curve,
duration: duration ?? this.duration,
deleteIcon: deleteIcon ?? this.deleteIcon,
style: this.style.merge(style),
variantStyle: this.variantStyle.merge(variantStyle),
dangerStyle: this.dangerStyle.merge(dangerStyle),
warningStyle: this.warningStyle.merge(warningStyle),
successStyle: this.successStyle.merge(successStyle),
infoStyle: this.infoStyle.merge(infoStyle),
);
}