getRenderBox static method

RenderBox? getRenderBox(
  1. BuildContext context
)

Implementation

static RenderBox? getRenderBox(BuildContext context) {
  RenderObject? renderObject = context.findRenderObject();
  RenderBox? box;
  if (renderObject != null) {
    box = renderObject as RenderBox;
  }
  return box;
}