WebJsInterop class

JavaScript interop for web-specific download operations.

Provides authenticated fetch, blob creation, and URL management for downloading private models on the web platform.

Constructors

WebJsInterop()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

fetchFile(String url) → Future<FetchResponse>
Fetches a public file (no authentication).
fetchWithAuth(String url, String authToken, {required void onProgress(double progress)}) → Future<FetchResponse>
Fetches a file with authentication.
fetchWithAuthAndCreateBlob(String url, String authToken, {required void onProgress(double progress)}) → Future<String>
Fetches a file with authentication and creates a blob URL.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
revokeBlobUrl(String blobUrl) → void
Revokes a blob URL to free memory.
toString() → String
A string representation of this object.
inherited

Operators

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