childBefore method

ChildType childBefore (ChildType child)

The previous child before the given child in the child list.

Implementation

ChildType childBefore(ChildType child) {
  assert(child != null);
  assert(child.parent == this);
  final ParentDataType childParentData = child.parentData;
  return childParentData.previousSibling;
}