renderTree method

  1. @override
void renderTree(
  1. Canvas canvas
)
override

Implementation

@override
void renderTree(ui.Canvas canvas) {
  if (_runShader) {
    decorator.applyChain(
      (decoratorCanvas) {
        _applyShader(
          decoratorCanvas,
          (recorderCanvas) {
            render(recorderCanvas);
            for (var c in children) {
              c.renderTree(recorderCanvas);
            }
          },
        );
      },
      canvas,
    );
  } else {
    super.renderTree(canvas);
  }
}