nextMonth property
DateTime
nextMonth
Implementation
DateTime get nextMonth {
var year = this.year;
var month = this.month;
if (month == 12) {
year++;
month = 1;
} else {
month++;
}
return DateTime(year, month);
}