DateTime now = new DateTime.now();
DateTime lastDayOfMonth = new DateTime(now.year, now.month + 1, 0);
print("${lastDayOfMonth.month}/${lastDayOfMonth.day}");
int daysInMonth(DateTime date) => DateTimeRange(
start: DateTime(date.year, date.month,1),
end: DateTime(date.year, date.month + 1))
.duration
.inDays;
print("Days in current month is ${daysInMonth(DateTime.now())}");