isInThisWeek method

bool isInThisWeek({
  1. Weekday firstDay = Weekday.monday,
})

Checks whether the date is in the same week as the given date

Implementation

bool isInThisWeek({Weekday firstDay = Weekday.monday}) =>
    isSameWeek(date: DateTime.now(), firstDay: firstDay);