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