INNER CODE UNIT · Dart
RectClipper
RafaelBarbosatec/tutorial_coach_mark · lib/src/clipper/rect_clipper.dart:6
class RectClipper extends CustomClipper<Path> {
final double progress;
final TargetPosition target;
final double offset;
final double radius;
final BorderSide? borderSide;
RectClipper({
required this.progress,
required this.target,
required this.offset,
required this.radius,
this.borderSide,
});
@override
Path getClip(Size size) {
if (target.offset == Offset.zero) return Path();