dispose method

void dispose()

Disposes the (native) resources of this atlas. The atlas can no longer be used after calling this function. Only the first call to this method will have an effect. Subsequent calls are ignored.

Implementation

void dispose() {
  if (_disposed) return;
  _disposed = true;
  _bindings.spine_atlas_dispose(_atlas);
  for (final image in atlasPages) {
    image.dispose();
  }
  atlasPagePaints.clear();
}