areEqual method

  1. @override
bool areEqual(
  1. dynamic a,
  2. dynamic b
)
override

Determines whether two records have the same state. See areIdentical for a check that two records represent the same resource.

Implementation

@override
bool areEqual(a, b) {
  if (a is Diffable) {
    return a.diffEquals(b);
  } else if (b is Diffable) {
    return b.diffEquals(a);
  }
  return fallbackEquals.equals(a, b);
}