addPicture method Null safety

void addPicture(
  1. Offset offset,
  2. Picture picture,
  3. {bool isComplexHint = false,
  4. bool willChangeHint = false}
)

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);
}