GoalStatus constructor

GoalStatus({
  1. GoalState? state,
  2. NavMode? mode,
  3. Position? target,
  4. String? location,
  5. Progress? progress,
  6. RouteProgress? route,
  7. String? suspendReason,
  8. NavError? error,
  9. Timestamp? startedAt,
  10. Timestamp? finishedAt,
})

Implementation

factory GoalStatus({
  GoalState? state,
  NavMode? mode,
  Position? target,
  $core.String? location,
  Progress? progress,
  RouteProgress? route,
  $core.String? suspendReason,
  NavError? error,
  $50.Timestamp? startedAt,
  $50.Timestamp? finishedAt,
}) {
  final $result = create();
  if (state != null) {
    $result.state = state;
  }
  if (mode != null) {
    $result.mode = mode;
  }
  if (target != null) {
    $result.target = target;
  }
  if (location != null) {
    $result.location = location;
  }
  if (progress != null) {
    $result.progress = progress;
  }
  if (route != null) {
    $result.route = route;
  }
  if (suspendReason != null) {
    $result.suspendReason = suspendReason;
  }
  if (error != null) {
    $result.error = error;
  }
  if (startedAt != null) {
    $result.startedAt = startedAt;
  }
  if (finishedAt != null) {
    $result.finishedAt = finishedAt;
  }
  return $result;
}