scanFilePath method

  1. @override
Future<Map> scanFilePath(
  1. String filePath, {
  2. String? modelId,
})
override

Scan an image file from path. Default throws.

Implementation

@override
Future<Map<dynamic, dynamic>> scanFilePath(String filePath,
    {String? modelId}) async {
  final result = await _methodChannel.invokeMapMethod<dynamic, dynamic>(
    'scanFile',
    {'filePath': filePath, if (modelId != null) 'modelId': modelId},
  );
  return result ?? {};
}