operator == method

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

Equal when year, month, and day match.

Implementation

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