isSameMonth method

bool isSameMonth(
  1. DateTime? other
)

Implementation

bool isSameMonth(DateTime? other) {
  if (this == null || other == null) return false;
  return this!.year == other.year && this!.month == other.month;
}