searchChildElementByKey method

ElementModel? searchChildElementByKey(
  1. Key key
)

Implementation

ElementModel? searchChildElementByKey(Key key) {
  ElementModel? result;
  context.visitChildElements((element) => result =
      _searchChildElementByKey(context.findRenderObject(), element, key));
  if (result == null) {
    return ElementModel.empty();
  }
  return result;
}