isSameMonth method

bool isSameMonth({
  1. DateTime? compareDate,
})

Implementation

bool isSameMonth({DateTime? compareDate}) {
  final dateTime = compareDate ?? DateTime.now();
  return year == dateTime.year && month == dateTime.month;
}