isSameDay static method

bool isSameDay(
  1. Jalali? dateA,
  2. Jalali? dateB
)

Returns true if the two Jalali objects have the same day, month, and year, or are both null.

Implementation

static bool isSameDay(Jalali? dateA, Jalali? dateB) {
  return dateA?.year == dateB?.year &&
      dateA?.month == dateB?.month &&
      dateA?.day == dateB?.day;
}