extract method Null safety
- File file,
- SpeechPackage pack
Extract the zip file of a speech pack
Implementation
Future<void> extract(File file, SpeechPackage pack) async {
var speechPackWorkflow = SpeechPackWorkflow.instance;
try {
speechPackWorkflow.changeState(SpeechPackState.extracting);
await _fileCtrl.extract(file, pack);
speechPackWorkflow.changeState(SpeechPackState.extractComplete);
} on Exception {
speechPackWorkflow.changeState(SpeechPackState.extractError);
}
}