renderTree method

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

Implementation

@override
void renderTree(Canvas canvas) {
  if (renderSnapshot) {
    if (_picture == null) {
      takeSnapshot();
    }
    canvas.save();
    canvas.transform(
      transformMatrix.storage,
    );
    canvas.drawPicture(_picture!);
    canvas.restore();
  } else {
    super.renderTree(canvas);
  }
}