getBox method

Widget getBox(
  1. void fn(
    1. RenderBox box
    )
)

Implementation

Widget getBox(void Function(RenderBox box) fn) {
  final key = GlobalKey();
  return Builder(
    builder: (context) {
      _getBox(fn, key);
      return Container(
        key: key,
        child: this,
      );
    },
  );
}