isPreviousNode method
Implementation
bool isPreviousNode(T? other) {
var otherRuntime = getSiblingRuntime(other);
if (otherRuntime == null) return false;
var idx = indexInParent;
var otherIdx = otherRuntime.indexInParent;
return otherIdx >= 0 && otherIdx + 1 == idx;
}