getBasicRect function

Rect getBasicRect(
  1. GlobalKey<State<StatefulWidget>> key
)

Implementation

Rect getBasicRect(GlobalKey key) {
  final target = key.currentContext?.findRenderObject() as RenderBox;
  return target.localToGlobal(Offset.zero) & target.size;
}