renderSubtree method

  1. @nonVirtual
  2. @protected
void renderSubtree(
  1. Canvas canvas
)

One of the two methods that subclasses should invoke to render the what is considered the "subtree" of the post process.

This method will set the context of the post process, so that components can know they are being rendered within a post process.

Implementation

@nonVirtual
@protected
void renderSubtree(Canvas canvas) {
  canvas.save();
  _updateContext!(this);
  _renderTree!(canvas);
  _updateContext!(null);
  canvas.restore();
}