copyWith method

SpeedRange copyWith({
  1. double? minSpeed,
  2. double? maxSpeed,
})

Implementation

SpeedRange copyWith({
  double? minSpeed,
  double? maxSpeed
}) {
  return SpeedRange(
    minSpeed: minSpeed ?? this.minSpeed,
    maxSpeed: maxSpeed ?? this.maxSpeed
  );
}