isThisMonth property

bool get isThisMonth

Returns true if the date is in the current month.

Implementation

bool get isThisMonth {
  final DateTime now = DateTime.now();
  return year == now.year && month == now.month;
}