onPaint method
Implementation
@override
void onPaint(PaintingContext context, Offset offset) {
final Rect clip = clipRect(paintBounds, animationFactor,
isInversed: xAxis!.isInversed, isTransposed: isTransposed);
context.canvas.clipRect(clip);
super.onPaint(context, offset);
}