copyWith method

RelativeRotaryRotation copyWith({
  1. String? direction,
  2. int? steps,
  3. int? durationMilliseconds,
})

Returns a copy of this object with its field values replaced by the ones provided to this method.

copyOriginalValues is true if you want to maintain the original object's initial values. This is useful if you plan on using this object in a PUT request.

Implementation

RelativeRotaryRotation copyWith({
  String? direction,
  int? steps,
  int? durationMilliseconds,
}) {
  return RelativeRotaryRotation(
    direction: direction ?? this.direction,
    steps: steps ?? this.steps,
    durationMilliseconds: durationMilliseconds ?? this.durationMilliseconds,
  );
}