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