render method

  1. @override
void render(
  1. Canvas canvas,
  2. BuildContext context
)
override

How to draw this widget on the canvas

Implementation

@override
void render(canvas, context) {
  canvas.save();
  canvas.clipRect(Rect.fromLTWH(0, 0, bounds.x, bounds.y));
  childBuild?.render(canvas, context);
  canvas.restore();
}