fromPreviousGoalStatus function

dynamic fromPreviousGoalStatus(
  1. 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;
  }
}