computeSlots function

List<Rect> computeSlots(
  1. Rect anchorRect,
  2. double anchorPad,
  3. double maxRadius
)

Implementation

@pragma('vm:prefer-inline')
List<Rect> computeSlots(Rect anchorRect, double anchorPad, double maxRadius) {
  final halo = anchorRect.inflate(maxRadius);
  final padded = anchorRect.inflate(anchorPad);
  return halo.minus(padded, epsilon: 0.5);
}