Status constructor

Status({
  1. bool? isPowered,
  2. double? position,
  3. bool? isMoving,
})

Implementation

factory Status({
  $core.bool? isPowered,
  $core.double? position,
  $core.bool? isMoving,
}) {
  final $result = create();
  if (isPowered != null) {
    $result.isPowered = isPowered;
  }
  if (position != null) {
    $result.position = position;
  }
  if (isMoving != null) {
    $result.isMoving = isMoving;
  }
  return $result;
}