createHandle method

PictureHandle createHandle()

Creates a PictureHandle that keeps the picture from being disposed.

Once all created handles are disposed, the underlying picture must not be used again.

Implementation

PictureHandle createHandle() {
  final PictureHandle handle = PictureHandle._(this);
  _handles.add(handle._id);
  return handle;
}