isSameMonth method

bool isSameMonth(
  1. DateTime date
)

Implementation

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