createLayer method

PictureLayer createLayer()

Creates a PictureLayer that will suitably manage the lifecycle of the picture.

This must not be called if all created handles have been disposed.

Implementation

PictureLayer createLayer() {
  assert(picture != null);
  return _NonOwningComplexPictureLayer(this);
}