dispose method

void dispose()

Dispose the SvgData object by releasing the Picture instance and setting the hasContent flag to false.

Implementation

void dispose() {
  picture?.dispose();
  picture = null;
  hasContent = false;
}