downloadModel method
Downloads the ML model on Android. No-op on iOS (model is bundled with the system).
Implementation
@override
Future<bool> downloadModel() async {
// iOS Vision framework is built-in, no download needed
if (Platform.isIOS) return true;
try {
final result = await methodChannel.invokeMethod<bool>('downloadModel');
return result ?? false;
} on PlatformException {
return false;
}
}