operator == method

  1. @override
bool operator ==(
  1. Object other
)
override

Equal when year, month, and day match; the time of day is ignored.

Implementation

@override
bool operator ==(Object other) =>
    other is PersianDate &&
    other.year == year &&
    other.month == month &&
    other.day == day;