copyWith method
HMSelectTheme
copyWith({
- HMSelectSize? size,
- Color? selectIconColor,
- Color? overlayColor,
- bool? selectIconAtLeft,
- Widget? inputIcon,
- 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,
);
}