paint abstract method

void paint(
  1. covariant RePaintBox box,
  2. PaintingContext context
)

Paint the scene.

Paint the updated objects after the update method.

box - the current render box of the widget. context - the painting context during the paint phase.

Hints:

  • Use the box.size to get the render box size.
  • Use the box.context to get the build context.
  • Use the context.canvas to draw the scene.

Implementation

void paint(covariant RePaintBox box, PaintingContext context);