copyWith method
HMSelectTheme
copyWith({
- HMSelectSize? size,
- Color? selectIconColor,
- bool? selectIconAtLeft,
- 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,
bool? selectIconAtLeft,
HMRadius? radius,
}) {
return HMSelectTheme(
selectIconColor: selectIconColor ?? this.selectIconColor,
radius: radius ?? this.radius,
selectIconAtLeft: selectIconAtLeft ?? this.selectIconAtLeft,
size: size ?? this.size,
);
}