importModelFromPath method
Imports a model directory the app already owns (e.g. a finished download in private storage) without going through the SAF picker.
Implementation
@override
Future<MnnModelInfo> importModelFromPath(
String directoryPath, {
required bool replaceExisting,
}) async => MnnModelInfo.fromMap(
await _invoke<Object?>('importModelFromPath', {
'directoryPath': directoryPath,
'replaceExisting': replaceExisting,
}),
);