getSize static method

Size? getSize(
  1. BuildContext? context
)

Get Size & Offset methods

Implementation

static Size? getSize(BuildContext? context) {
  RenderObject? box = context?.findRenderObject();
  if (box is RenderBox) {
    return box.size;
  }
  return null;
}