MovaTempSttSubtitleDirProvider class
The default IMovaSttSubtitleDirProvider: a named folder under the
platform's persistent application-support directory, e.g.
<app support>/mova_stt_subtitles.
Persistent, like MovaTempSttModelDirProvider and for the same reason: a batch-transcribed subtitle file is exactly the kind of thing that should survive OS temp-directory cleanup, since regenerating it means paying for a full re-transcription.
Lives outside lib/src/core/** because path_provider is a Flutter
plugin and the core layer must stay plugin-free.
默认的 IMovaSttSubtitleDirProvider:应用持久化支持目录下的一个命名文件夹,
例如 <app support>/mova_stt_subtitles。
持久化,理由与 MovaTempSttModelDirProvider 相同:批量转写出的字幕文件正是 那种该扛得住系统清理临时目录的东西——重新生成意味着要再付一次完整转写的 代价。
放在 lib/src/core/** 之外,因为 path_provider 是 Flutter 插件,
core 层必须与插件解耦。
- Implemented types
Constructors
- MovaTempSttSubtitleDirProvider({String folderName = 'mova_stt_subtitles'})
-
Creates a provider rooted at the application-support directory.
const
Properties
- folderName → String
-
Sub-folder name under the platform application-support directory.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
) → Future< String> -
Returns the absolute path of the cache directory; the caller creates it
if it does not exist yet.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited