mostRecentWeekday method

DateTime mostRecentWeekday(
  1. int weekday
)

Implementation

DateTime mostRecentWeekday(int weekday) =>
    DateTime(year, month, day - (this.weekday - weekday) % 7);