render method

void render(
  1. void renderCommand(
    1. Canvas canvas,
    2. Paint defaultPaint
    )
)

Implementation

void render(void Function(Canvas canvas, Paint defaultPaint) renderCommand) {
  if (_canvas == null) return;

  end();
  renderCommand(_canvas!, paint);
  begin(_canvas!);
}