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