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