SttModelFile class

Model file for STT models (.tflite files)

Inheritance

Constructors

SttModelFile({required ModelSource source, required String filename})
SttModelFile.fromSource(ModelSource source)
Creates SttModelFile from ModelSource
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 setterinherited
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