equalTo method
Implementation
bool equalTo(
T other, {
Comparator<T> comparator = compareNaturalOrder,
}) =>
comparator(this, other) == 0;
bool equalTo(
T other, {
Comparator<T> comparator = compareNaturalOrder,
}) =>
comparator(this, other) == 0;