getSizeFromKey function

Size getSizeFromKey(
  1. GlobalKey<State<StatefulWidget>> key
)

Implementation

Size getSizeFromKey(GlobalKey key) {
  return key.currentContext?.size ?? const Size(0, 0);
}