getFirstDayOfNextMonth static method
Returns a date with the same month and year of the current date, and the first day of the current month.
If month
is not specified, return the first day of the current month's next month.
Implementation
static DateTime getFirstDayOfNextMonth({DateTime? month}) {
var dateTime = getFirstDayOfMonth(month: month);
dateTime = dateTime.add(const Duration(days: 32));
dateTime = getFirstDayOfMonth(month: dateTime);
return dateTime.getDateOnly();
}