dayInWeek property
int
get
dayInWeek
Implementation
int get dayInWeek {
DateTime firstDayInMonth = new DateTime(
year,
month,
);
Duration duration = this.difference(firstDayInMonth);
return duration.inDays ~/ 7 + 1;
}