TtsBundleFile class
One file of a TTS model bundle. Keyed by its own filename so a bundle of
N files gets N distinct prefsKeys (mirrors how the manager maps
filePaths[file.prefsKey] = path).
Constructors
- TtsBundleFile({required ModelSource source, required String filename})
- TtsBundleFile.fromSource(ModelSource source)
-
factory
Properties
- extension → String
-
File extension for validation purposes (with leading dot, e.g., '.model')
no setterinherited
- filename → String
-
Local filename for this file
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- isRequired → bool
-
Whether this file is required for the model to function
no setteroverride
- minimumSizeBytes → int?
-
Optional per-file minimum size (bytes) for the download-corruption check.
Null → the validator falls back to the extension heuristic
(
FileNameUtils.getMinimumSize). Override for files whose real size is legitimately below the 1 MB default (e.g. a small embedding blob).no setteroverride - prefsKey → String
-
SharedPreferences key for storing this file's installation status
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → ModelSource
-
Source from which this file can be obtained (NEW: type-safe ModelSource)
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited