clearModel method
Requests release of the downloaded Android ML model.
This is a best-effort request delegated to Google Play services and does not guarantee immediate removal. No-op on iOS.
Implementation
@override
Future<bool> clearModel() async {
// iOS Vision framework is built-in, no downloaded module to clear.
if (Platform.isIOS) return true;
try {
final result = await methodChannel.invokeMethod<bool>('clearModel');
return result ?? false;
} on PlatformException {
return false;
}
}