compare method

bool compare(
  1. bool isIdentityOnly,
  2. E first,
  3. E second
)

Implementation

bool compare(bool isIdentityOnly, E first, E second) {
  if (isIdentityOnly == true) {
    return identical(first, second);
  } else {
    return equal(first, second);
  }
}