isTomorrow static method

bool isTomorrow(
  1. DateTime date
)

Check if date is tomorrow

date - The date to check Returns true if date is tomorrow

Implementation

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