nextMonth method

DateTime nextMonth()

下一个月

Implementation

DateTime nextMonth() {
  final month = this.month + 1;
  final year = this.year;
  return DateTime(month > 12 ? year + 1 : year, month > 12 ? 1 : month);
}