equalTo method

bool equalTo(
  1. T other, {
  2. Comparator<T> comparator = compareNaturalOrder,
})

Implementation

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