findFirstDateOfTheWeek method

DateTime? findFirstDateOfTheWeek()

Implementation

DateTime? findFirstDateOfTheWeek() {
  return this?.subtract(Duration(days: (this?.weekday)! - 1));
}