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