startOfWeek property
DateTime
get
startOfWeek
First day of the week containing this date (Monday-first).
Implementation
DateTime get startOfWeek {
final DateTime start = startOfDay;
return start.subtract(Duration(days: start.weekday - DateTime.monday));
}