copyWith method

SliderValue copyWith({
  1. SlidingState? state,
  2. double? factor,
  3. double? offset,
  4. Offset? position,
})

Implementation

SliderValue copyWith({
  SlidingState? state,
  double? factor,
  double? offset,
  Offset? position,
}) {
  return SliderValue(
    state: state ?? this.state,
    factor: factor ?? this.factor,
    offset: offset ?? this.offset,
    position: position ?? this.position,
  );
}