BlobUrlManager class

Manages blob URL lifecycle to prevent memory leaks.

Tracks active blob URLs and ensures they are revoked when no longer needed. Blob URLs hold memory in the browser until explicitly revoked.

Constructors

BlobUrlManager.new(WebJsInterop _jsInterop, WebFileSystemService fileSystemService)

Properties

activeBlobCount int
Returns the number of active blob URLs.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cleanup(String filename) → void
Cleans up a blob URL by filename.
cleanupAll() → void
Cleans up all blob URLs.
cleanupByUrl(String blobUrl) → void
Cleans up a blob URL directly (callback from WebFileSystemService).
isTracking(String blobUrl) bool
Returns whether a blob URL is being tracked.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
track(String filename, String blobUrl) → void
Tracks a new blob URL for a model file.

Operators

operator ==(Object other) bool
The equality operator.
inherited