cleanup method

void cleanup(
  1. String filename
)

Cleans up a blob URL by filename.

Called when a model is closed or replaced.

Implementation

void cleanup(String filename) {
  final blobUrl = _activeBlobUrls.remove(filename);
  if (blobUrl != null) {
    _jsInterop.revokeBlobUrl(blobUrl);
  }
}