Documentation Index
Fetch the complete documentation index at: https://starrycodes.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
🚀 Flutter_Extend Version 0.3.0 is now live! See our changelog for details.
Instantly check if a DateTime falls on today, yesterday, tomorrow, or in the past/future, ignoring time components for calendar accuracy.
Documentation Index
Fetch the complete documentation index at: https://starrycodes.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
final today = DateTime.now();
print(today.isToday()); // true
final yesterday = myDate.subtract(const Duration(days: 1));
print(yesterday.isYesterday()); // true
final tomorrow = myDate.add(const Duration(days: 1));
print(tomorrow.isTomorrow()); // true
DateTime.now()).print(DateTime(2000, 1, 1).isPast()); // true
DateTime.now()).final reminder = DateTime.now().add(const Duration(hours: 1));
print(reminder.isFuture()); // true
Was this page helpful?