isSameDay method
Returns true if the date occurs on the same calendar day as withThis.
Implementation
bool isSameDay({required DateTime withThis}) {
if (this == null) return false;
return this!.year == withThis.year &&
this!.month == withThis.month &&
this!.day == withThis.day;
}