isTomorrow property
bool
get
isTomorrow
Returns true if the date is tomorrow.
Example:
DateTime.now().add(Duration(days: 1)).isTomorrow; // true
Implementation
bool get isTomorrow {
final tomorrow = DateTime.now().add(const Duration(days: 1));
return year == tomorrow.year &&
month == tomorrow.month &&
day == tomorrow.day;
}