indexChanged method
- int reference
Returns whether reference
index was changed in this operation.
Implementation
bool indexChanged(int reference) {
// If reference was before the change then it wasn't changed.
if (reference < index) return false;
// If this was a shift operation anything after index is changed.
if (addedCount != removed.length) return true;
// Otherwise anything in the update range was changed.
return reference < index + addedCount;
}