isEndOfMonth static method

bool isEndOfMonth(
  1. DateTime dateTime
)

Implementation

static bool isEndOfMonth(DateTime dateTime) {
  final tomorrow = dateTime.add(const Duration(days: 1));
  return tomorrow.day == 1;
}