isBeforeToday method

bool isBeforeToday()

Implementation

bool isBeforeToday() {
  final now = DateTime.now();
  final today = DateTime(now.year, now.month, now.day);
  return isBefore(today);
}