void addTexture(int textureId, { Offset offset: Offset.zero, double width: 0.0, double height: 0.0 })

Adds a backend texture to the scene.

The texture is scaled to the given size and rasterized at the given offset.

Source

void addTexture(int textureId, { Offset offset: Offset.zero, double width: 0.0, double height: 0.0 }) {
  assert(offset != null, 'Offset argument was null');
  _addTexture(offset.dx, offset.dy, width, height, textureId);
}