NetworkSource class final

Network source - downloads from HTTPS/HTTP URLs

Inheritance

Constructors

NetworkSource(String url, {String? authToken, bool? foreground})

Properties

authToken → String?
final
foreground → bool?
Whether to use foreground service on Android (shows notification)
final
hashCode → int
The hash code for this object.
no setteroverride
isSecure → bool
Whether the connection uses HTTPS
no setter
requiresDownload → bool
Whether this source requires downloading
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
supportsProgress → bool
Whether this source supports progress tracking
no setteroverride
supportsResume → bool
Whether this source supports resume after interruption
no setteroverride
url → String
final

Methods

encode() → String
Compact string representation for SharedPreferences-based active-model persistence (#227). Format: <kind>|<value> where kind ∈ {network, asset,bundled,file}. Auth tokens are NOT encoded — restored network sources will re-request without auth and let the file system service serve the previously-cached blob instead of re-downloading.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override
validateLoraSource(ModelSource loraSource) → bool
Validates if LoRA source is compatible with this model source
override

Operators

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