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();
  childrenBuild.forEach((child) {
    child.render(canvas, context);
    if (isHorizontal) {
      canvas.translate(child.bounds.x, 0);
    } else {
      canvas.translate(0, child.bounds.y);
    }
  });
  canvas.restore();
}