copyWith method

  1. @override
HMSliderTheme copyWith({
  1. HMOrientation? orientation,
  2. Color? color,
  3. HMRadius? radius,
  4. 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,
  );
}