addPicture method Null safety
Adds a Picture to the scene.
The picture is rasterized at the given offset.
Implementation
void addPicture(
Offset offset,
Picture picture, {
bool isComplexHint = false,
bool willChangeHint = false,
}) {
assert(!picture.debugDisposed);
final int hints = (isComplexHint ? 1 : 0) | (willChangeHint ? 2 : 0);
_addPicture(offset.dx, offset.dy, picture, hints);
}