findLastDateOfTheWeek method

DateTime? findLastDateOfTheWeek()

Implementation

DateTime? findLastDateOfTheWeek() {
  return this?.add(Duration(days: DateTime.daysPerWeek - (this?.weekday)!));
}