paint method
do not paint anything if the size of RenderSlideAction is empty
Implementation
@override
void paint(PaintingContext context, Offset offset) {
if (size.isEmpty) return;
context.pushClipRect(
needsCompositing,
offset,
Offset.zero & size,
defaultPaint,
);
}