copyWith method
HMChipTheme
copyWith({
- Color? backgroundColor,
- Color? selectedColor,
- Color? textColor,
- HMRadius? radius,
- bool? isFilled,
- BorderSide? borderSide,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
HMChipTheme copyWith({
Color? backgroundColor,
Color? selectedColor,
Color? textColor,
HMRadius? radius,
bool? isFilled,
BorderSide? borderSide,
}) {
return HMChipTheme(
backgroundColor: backgroundColor ?? this.backgroundColor,
radius: radius ?? this.radius,
selectedColor: selectedColor ?? this.selectedColor,
textColor: textColor ?? this.textColor,
isFilled: isFilled ?? this.isFilled,
borderSide: borderSide ?? this.borderSide,
);
}