void render(void Function(Canvas canvas, Paint defaultPaint) renderCommand) { if (_canvas == null) return; end(); renderCommand(_canvas!, paint); begin(_canvas!); }