setAudioFile method

void setAudioFile(
  1. {required AppModel appModel,
  2. required CreatorModel creatorModel,
  3. required File file,
  4. 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();
}