addPicture method

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 }) {
  int hints = 0;
  if (isComplexHint)
    hints |= 1;
  if (willChangeHint)
    hints |= 2;
  _addPicture(offset.dx, offset.dy, picture, hints);
}