isThisMonth static method

bool isThisMonth(
  1. DateTime date
)

Implementation

static bool isThisMonth(DateTime date){
  final curCal = DateTime.now();
  bool isSameMonth = curCal.month == date.month;
  bool isSameYear = curCal.year == date.year;
  return isSameMonth && isSameYear;
}