check if date is same in datetime flutter code example
Example: how to check if two dates are same in flutter
extension DateOnlyCompare on DateTime {
bool isSameDate(DateTime other) {
return this.year == other.year && this.month == other.month
&& this.day == other.day;
}
}