requestMargin method
Implementation
EdgeInsets? requestMargin() {
RenderBox? box = context.findRenderObject() as RenderBox?;
if (box != null) {
Offset globalPosition = box.localToGlobal(Offset.zero);
Size size = box.size;
return EdgeInsets.only(
left: globalPosition.dx,
top: globalPosition.dy + size.height,
right: 8,
bottom: 8);
}
return null;
}