findChildByKey method

  1. @override
ChildLayout? findChildByKey(
  1. Object key
)
override

Implementation

@override
ChildLayout? findChildByKey(Object key) {
  Box? child = firstChild;
  while (child != null) {
    if (child.parentData.layoutData?.key == key) {
      return BoxChildLayout(child);
    }
    child = child.parentData.nextSibling;
  }
  return null;
}