Plan constructor

Plan({
  1. Iterable<Position>? path,
  2. String? location,
  3. double? lengthM,
})

Implementation

factory Plan({
  $core.Iterable<Position>? path,
  $core.String? location,
  $core.double? lengthM,
}) {
  final $result = create();
  if (path != null) {
    $result.path.addAll(path);
  }
  if (location != null) {
    $result.location = location;
  }
  if (lengthM != null) {
    $result.lengthM = lengthM;
  }
  return $result;
}