GoalStatus constructor
GoalStatus({ - GoalState? state,
- NavMode? mode,
- Position? target,
- String? location,
- Progress? progress,
- RouteProgress? route,
- String? suspendReason,
- NavError? error,
- Timestamp? startedAt,
- 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;
}