isWholeMonth property

bool isWholeMonth

Returns true if this DateTimeRange ranges a full natural month (e.g. January 1 to January 31).

Implementation

bool get isWholeMonth {
  return start.year == end.year && start.month == end.month && start.day == 1 && start.endOfMonth.day == end.day;
}