isCurrentMonth property
bool
get
isCurrentMonth
Checks if the number (assumed to represent a month, 1-based) corresponds to the current month.
Example:
8.isCurrentMonth; // Returns true if the current month is August
Implementation
bool get isCurrentMonth {
final now = DateTime.now();
return toInt() == now.month;
}