uninstallStt static method

Future<void> uninstallStt()

Uninstall the active STT model — deletes all its files and clears the active-STT identity. No-op if none active.

Implementation

static Future<void> uninstallStt() async {
  final manager = FlutterGemmaPlugin.instance.modelManager;
  final spec = manager.activeSttModel;
  if (spec == null) return;
  await manager.deleteModel(spec);
  await manager.clearActiveSttIdentity();
}