operator == method

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

Compare this YearMonth and compare the same

Implementation

@override
bool operator ==(Object compare) =>
    // ignore: test_types_in_equals
    _checkCompreObject(compare) &&
    (compare as YearMonth).compareTo(this) == 0;