addSharpBottomRight method
Implementation
void addSharpBottomRight(SharpProcessedRadius radius, Rect rect) {
final width = rect.width;
final height = rect.height;
if (radius.radius.cornerRadius > 0) {
final a = radius.a;
final b = radius.b;
final c = radius.c;
final d = radius.d;
final p = radius.p;
this
..lineTo(
width,
math.max(height / 2, height - p),
)
..cubicTo(
width,
height - (p - a),
width,
height - (p - a - b),
width - d,
height - (p - a - b - c),
)
..relativeArcToPoint(
Offset(
-radius.circularSectionLength,
radius.circularSectionLength,
),
radius: radius.radius,
)
..cubicTo(
width - (p - a - b),
height,
width - (p - a),
height,
math.max(width / 2, width - p),
height,
);
} else {
this
..lineTo(width, height)
..lineTo(width / 2, height);
}
}