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,
  $2.GpsCoordinates? destination,
  $core.Iterable<$2.GpsCoordinates>? obstacles,
  $core.Iterable<$2.GpsCoordinates>? path,
  AutonomyTask? task,
  $core.bool? crash,
  $0.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;
}