findFirstDateOfNextWeek static method

DateTime findFirstDateOfNextWeek(
  1. DateTime dateTime
)

Find first date of next week using a date in current week. dateTime A date in current week.

Implementation

static DateTime findFirstDateOfNextWeek(DateTime dateTime) {
  final DateTime sameWeekDayOfNextWeek =
      dateTime.add(const Duration(days: 7));
  return findFirstDateOfTheWeek(sameWeekDayOfNextWeek);
}