IsEqualTo static method

bool IsEqualTo(
  1. IndexedPropertyDefinition idxPropDef1,
  2. IndexedPropertyDefinition idxPropDef2
)
Determines whether two specified instances of IndexedPropertyDefinition are equal. First indexed property definition. Second indexed property definition.

Implementation

static bool IsEqualTo(IndexedPropertyDefinition idxPropDef1,
    IndexedPropertyDefinition idxPropDef2) {
  return identical(idxPropDef1, idxPropDef2) ||
      (idxPropDef1 != null &&
          idxPropDef2 != null &&
          idxPropDef1.Uri == idxPropDef2.Uri &&
          idxPropDef1.Index == idxPropDef2.Index);
}