getRenderBox method

RenderBox? getRenderBox()

Returns the RenderBox of the child widget.

Implementation

RenderBox? getRenderBox() {
  if (currentContext != null) {
    return currentContext!.findRenderObject() as RenderBox;
  }

  return null;
}