copyWith method

  1. @override
HMSelectBagdeTheme copyWith({
  1. Color? backgroundColor,
  2. Color? selectedColor,
  3. Color? textColor,
  4. double? spacing,
  5. HMRadius? radius,
  6. BorderSide? borderSide,
  7. Color? deleteIconColor,
  8. Color? chipColor,
  9. 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,
  );
}