isTomorrow method

bool isTomorrow()

Returns true if the given date is tomorrow.

Example:

DateTime tomorrow = DateTime.now().add(Duration(days: 1));
print(tomorrow.isTomorrow); // Output: true

Implementation

bool isTomorrow() {
  if (isNull) {
    return false;
  }
  final tomorrow = DateTime.now().add(const Duration(days: 1));
  return isSameDay(tomorrow);
}