paint method

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

Renders this stage on the given canvas.

Implementation

@override
void paint(ui.Canvas canvas) {
  /// scene start painting.
  if (maskBounds && _stageRectNative != null) {
    canvas.clipRect(_stageRectNative!);
  }
  if (_backgroundPaint != null) {
    canvas.drawPaint(_backgroundPaint!);
  }
  super.paint(canvas);
  if (DisplayBoundsDebugger.debugBoundsMode == DebugBoundsMode.stage) {
    _boundsDebugger.canvas = canvas;
    _boundsDebugger.render();
  }
  if (showBoundsRect) {
    canvas.drawPath(_stageBoundsRectPath, _stageBoundsRectPaint);
  }
}