INNER CODE UNIT · Dart
y
RafaelBarbosatec/tutorial_coach_mark · lib/src/clipper/rect_clipper.dart:34
double y = -maxSize / 2 * (1 - progress) + target.offset.dy - offset / 2;
double w = maxSize * (1 - progress) + target.size.width + offset;
double h = maxSize * (1 - progress) + target.size.height + offset;
return radius > 0
? rRectHolePath(size, x, y, w, h, radius)
: rectHolePath(size, x, y, w, h);
}
@override
bool shouldReclip(covariant RectClipper oldClipper) {
return progress != oldClipper.progress;
}
static Path rectHolePath(
Size canvasSize,
double x,
double y,