disableDate method

bool disableDate(
  1. DateTime day
)

Implementation

bool disableDate(DateTime day) {
  if ((day.isAfter(DateTime.now().subtract(const Duration(days: 1))) &&
      day.isBefore(DateTime.now().add(const Duration(days: 5))))) {
    return true;
  }
  return false;
}