isLastSundayThisMonth property

bool isLastSundayThisMonth
  • return true the last sunday of the month

Implementation

bool get isLastSundayThisMonth =>
    isSunday &&
    month + 1 == DateTime(year, month, day + DateTime.daysPerWeek).month;