isTomorrow method

bool isTomorrow()

Returns true if a DateTime corresponds to tomorrow (Same year and day + 1).

Implementation

bool isTomorrow() {
  final DateTime tomorrow = DateTime.now().add(const Duration(days: 1));
  return tomorrow.day == day &&
      tomorrow.month == month &&
      tomorrow.year == year;
}