MlkitDocumentScannerPlugin class final

This is the main plugin class. You should be able to instantiate the class, use the startDocumentScanner method to configure and start a scanner, and collect PDF scan data from the scanResults stream.

Inheritance
  • Object
  • PlatformInterface
  • MlkitDocumentScannerPlugin

Constructors

MlkitDocumentScannerPlugin({required Object token})

Properties

hashCode int
The hash code for this object.
no setterinherited
jpegScanResults Stream<List<Uint8List>?>
This stream contains full stream of JPEG data that came from the scan.
no setter
pdfScanResults Stream<Uint8List?>
This stream contains full stream of PDF data that came from the scan.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startDocumentScanner({required int maximumNumberOfPages, required bool galleryImportAllowed, required MlkitDocumentScannerMode scannerMode, required DocumentScannerResultMode resultMode}) Future<void>
This method starts the document scanner. It tries to mimic the official API as much as possible. Refer to this URL for more information: https://developers.google.com/ml-kit/vision/doc-scanner.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited