picture property

Picture? get picture

The picture recorded for this layer.

The picture's coordinate system matches this layer's coordinate system.

The scene must be explicitly recomposited after this property is changed (as described at Layer).

Implementation

ui.Picture? get picture => _picture;
set picture (Picture? picture)

Implementation

set picture(ui.Picture? picture) {
  assert(!_debugDisposed);
  markNeedsAddToScene();
  _picture?.dispose();
  _picture = picture;
}