setAudioFile method
- {required AppModel appModel,
- required CreatorModel creatorModel,
- required File file,
- String? searchTermUsed}
Takes a new file as the audio file.
Implementation
void setAudioFile({
required AppModel appModel,
required CreatorModel creatorModel,
required File file,
String? searchTermUsed,
}) {
creatorModel.getFieldController(this).clear();
_exportFile = file;
_currentSearchTerm = searchTermUsed;
_isSearching = false;
creatorModel.refresh();
}