searchChildElement method

ElementModel? searchChildElement(
  1. String? key
)

Implementation

ElementModel? searchChildElement(String? key) {
  ElementModel? result;
  context.visitChildElements((element) =>
      result = _searchChildElement(context.findRenderObject(), element, key));
  if (result == null) {
    return ElementModel.empty();
  }
  return result;
}