copyWith method

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

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

Implementation

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