isMonth static method

bool isMonth({
  1. required DateTime dateTime,
})

是否本月

Implementation

static bool isMonth({required DateTime dateTime}) {
  DateTime nowTime = DateTime.now();
  return nowTime.year == dateTime.year && nowTime.month == dateTime.month;
}