getGlobalAreaBounds method

  1. @override
Rect getGlobalAreaBounds()
override

Implementation

@override
Rect getGlobalAreaBounds() {
  if(parent==null){return boundRect;}
  Rect parentRect=parent!.getGlobalAreaBounds();
  double l=parentRect.left+boundRect.left;
  double t=parentRect.top+boundRect.top;
  return Rect.fromLTWH(l, t, boundRect.width, boundRect.height);
}