fromPreviousGoalStatus function
dynamic
fromPreviousGoalStatus(
- GoalStatus? status
Implementation
fromPreviousGoalStatus(prev_goal_types.GoalStatus? status) {
switch (status) {
case prev_goal_types.GoalStatus.pending:
return GoalStatus.pending;
case prev_goal_types.GoalStatus.active:
return GoalStatus.active;
case prev_goal_types.GoalStatus.done:
return GoalStatus.done;
case prev_goal_types.GoalStatus.archived:
return GoalStatus.archived;
case null:
return null;
}
}