isSameMonth method

bool isSameMonth(
  1. DateTime date
)

Indicates whether two DateTime objects are in the same month.

Implementation

bool isSameMonth(DateTime date) {
  return year == date.year && month == date.month;
}