paint method

  1. @override
void paint(
  1. PaintingContext context,
  2. Size viewport, {
  3. Offset? origin,
})
override

Implementation

@override
void paint(PaintingContext context, Size viewport, {Offset? origin}) {
  Canvas canvas = context.canvas;
  if (origin != null) {
    canvas.save();
    canvas.translate(origin.dx, origin.dy);
  }
  verticalScrollbar.paint(canvas, viewport);
  horizontalScrollbar.paint(canvas, viewport);
  if (origin != null) {
    canvas.restore();
  }
}