INNER CODE UNIT · Dart
maxSize
RafaelBarbosatec/tutorial_coach_mark · lib/src/clipper/rect_clipper.dart:29
var maxSize = max(size.width, size.height) +
max(target.size.width, target.size.height) +
target.getBiggerSpaceBorder(size);
double x = -maxSize / 2 * (1 - progress) + target.offset.dx - offset / 2;
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;
}