getSize static method
Get Size & Offset methods
Implementation
static Size? getSize(BuildContext? context) {
RenderObject? box = context?.findRenderObject();
if (box is RenderBox) {
return box.size;
}
return null;
}
Get Size & Offset methods
static Size? getSize(BuildContext? context) {
RenderObject? box = context?.findRenderObject();
if (box is RenderBox) {
return box.size;
}
return null;
}