unloadAll method
Unload the model resident under category, or every resident model
when null. This is the only category/global unload; unload releases
exactly one model by id.
Throws SDKException when an unload fails.
Implementation
Future<void> unloadAll([ModelCategory? category]) async {
if (category != null) {
await ModelGate.unload(category);
return;
}
for (final each in _loadableCategories) {
await ModelGate.unload(each);
}
}