copyWith method

DailyGoalState copyWith({
  1. DailyGoal? goal,
})

Implementation

DailyGoalState copyWith({DailyGoal? goal}) =>
    DailyGoalState(goal: goal ?? this.goal);