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