copyWith method

  1. @override
HMMultiSelectTheme copyWith({
  1. HMSelectSize? size,
  2. Color? selectIconColor,
  3. Color? overlayColor,
  4. bool? selectIconAtLeft,
  5. HMRadius? radius,
  6. Color? fillColor,
  7. Widget? inputIcon,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
HMMultiSelectTheme copyWith({
  HMSelectSize? size,
  Color? selectIconColor,
  Color? overlayColor,
  bool? selectIconAtLeft,
  HMRadius? radius,
  Color? fillColor,
  Widget? inputIcon,
}) {
  return HMMultiSelectTheme(
    selectIconColor: selectIconColor ?? this.selectIconColor,
    overlayColor: overlayColor ?? this.overlayColor,
    fillColor: fillColor ?? this.fillColor,
    inputIcon: inputIcon ?? this.inputIcon,
    radius: radius ?? this.radius,
    selectIconAtLeft: selectIconAtLeft ?? this.selectIconAtLeft,
    size: size ?? this.size,
  );
}