Status constructor

Status({
  1. Iterable<double>? positionsMm,
  2. Iterable<double>? lengthsMm,
  3. bool? isMoving,
})

Implementation

factory Status({
  $core.Iterable<$core.double>? positionsMm,
  $core.Iterable<$core.double>? lengthsMm,
  $core.bool? isMoving,
}) {
  final $result = create();
  if (positionsMm != null) {
    $result.positionsMm.addAll(positionsMm);
  }
  if (lengthsMm != null) {
    $result.lengthsMm.addAll(lengthsMm);
  }
  if (isMoving != null) {
    $result.isMoving = isMoving;
  }
  return $result;
}