paint method

  1. @override
void paint(
  1. PaintingContext context,
  2. Offset offset
)
override

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,
  );
}