copyWith method
HMSliderTheme
copyWith({
- HMOrientation? orientation,
- Color? color,
- HMRadius? radius,
- HMSliderSize? size,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
HMSliderTheme copyWith({
HMOrientation? orientation,
Color? color,
HMRadius? radius,
HMSliderSize? size,
}) {
return HMSliderTheme(
color: color ?? this.color,
radius: radius ?? this.radius,
orientation: orientation ?? this.orientation,
size: size ?? this.size,
);
}