isTimeSlotValide method
Implementation
bool isTimeSlotValide() {
try {
// Get the dates
DateTime startDate =
DateTime.parse(_singleton._troubleshooting?.startDate ?? "");
DateTime endDate =
DateTime.parse(_singleton._troubleshooting?.endDate ?? "");
// Get the actual date
DateTime actualDate = DateTime.now();
return actualDate.isAfter(startDate) && actualDate.isBefore(endDate);
} catch (e) {
// No dates for Troubleshooting
return false;
}
}