canvas property

  1. @override
Canvas get canvas
override

The canvas on which to paint.

The current canvas can change whenever you paint a child using this context, which means it's fragile to hold a reference to the canvas returned by this getter.

Implementation

@override
ui.Canvas get canvas => SpoilerCanvas(super.canvas, this);