detectFile method

  1. @override
Future<List<DocumentResult>> detectFile(
  1. String file
)
override

Detects documents in the given image file.

Parameters:

  • file: path to the file.

Returns a List of DocumentResult on success, or null if the image could not be detected.

Implementation

@override
Future<List<DocumentResult>> detectFile(String file) async {
  List? results = await methodChannel.invokeListMethod<dynamic>(
    'detectFile',
    {'file': file},
  );

  return _resultWrapper(results);
}