getOccludePoint method

void getOccludePoint(
  1. dynamic rect(
    1. OccludePoint
    )
)

Implementation

void getOccludePoint(Function(OccludePoint) rect) {
  var occludePoint = OccludePoint(0, 0, 0, 0);

  Rect? bound = _widgetKey.globalPaintBounds;

  if (bound == null) {
    rect(occludePoint);
    return;
  }

  occludePoint = OccludePoint(
    bound.left.toNative,
    bound.top.toNative,
    bound.right.toNative,
    bound.bottom.toNative,
  );

  rect(occludePoint);
}