operator == method

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

equals operator

Implementation

@override
bool operator ==(Object other) {
  return identical(this, other) ||
      other is Gregorian &&
          runtimeType == other.runtimeType &&
          year == other.year &&
          month == other.month &&
          day == other.day;
}