I have a showTimePicker in my app and I want to compare between the picked time and the current real time.
I tried to used DateTime.now() and compare it to the value that was picked but the value is TimeOfDay and also DateTime.now() has year,month, day.. etc.
The scenario I want is that when a user picks a time after choosing a date I want my app to check if this time is overdue or not.
I have write a extension for TimeOfDay, I think you can use func on this extension.