copyWith method

  1. @override
HMChipTheme copyWith({
  1. Color? backgroundColor,
  2. Color? selectedColor,
  3. Color? textColor,
  4. HMRadius? radius,
  5. bool? isFilled,
  6. 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,
  );
}