getScanDocuments method
Scans documents and returns raw platform data.
Returns null if the user cancelled. The raw data shape varies by
platform and is normalized by FlutterDocScanner.
Implementation
@override
Future<dynamic> getScanDocuments(int page) async {
try {
return await methodChannel.invokeMethod<dynamic>(
'getScanDocuments',
{'page': page},
);
} on PlatformException catch (e) {
throw DocScanException(
code: e.code,
message: e.message ?? 'Failed to scan documents',
details: e.details,
);
}
}