copyWith method

  1. @override
HMSelectTheme copyWith({
  1. HMSelectSize? size,
  2. Color? selectIconColor,
  3. bool? selectIconAtLeft,
  4. 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,
  );
}