AutonomyData constructor

AutonomyData({
  1. AutonomyState? state,
  2. GpsCoordinates? destination,
  3. Iterable<GpsCoordinates>? obstacles,
  4. Iterable<GpsCoordinates>? path,
  5. AutonomyTask? task,
  6. bool? crash,
  7. Version? version,
})

Implementation

factory AutonomyData({
  AutonomyState? state,
  $3.GpsCoordinates? destination,
  $core.Iterable<$3.GpsCoordinates>? obstacles,
  $core.Iterable<$3.GpsCoordinates>? path,
  AutonomyTask? task,
  $core.bool? crash,
  $2.Version? version,
}) {
  final $result = create();
  if (state != null) {
    $result.state = state;
  }
  if (destination != null) {
    $result.destination = destination;
  }
  if (obstacles != null) {
    $result.obstacles.addAll(obstacles);
  }
  if (path != null) {
    $result.path.addAll(path);
  }
  if (task != null) {
    $result.task = task;
  }
  if (crash != null) {
    $result.crash = crash;
  }
  if (version != null) {
    $result.version = version;
  }
  return $result;
}