box property

RenderBox get box

Returns the underlying RenderBox associated with this GlobalKey.

Assumes that the widget is mounted and has a render object.

Implementation

RenderBox get box => currentContext!.findRenderObject() as RenderBox;