FlutterDocumentScannerPlatform class abstract
The interface that implementations of flutter_document_scanner must implement.
Platform implementations should extend this class
rather than implement it as FlutterDocumentScanner
.
Extending this class (using extends
) ensures that the subclass will get
the default implementation, while platform implementations that implements
this interface will be broken by newly added
FlutterDocumentScannerPlatform methods.
- Inheritance
-
- Object
- PlatformInterface
- FlutterDocumentScannerPlatform
Constructors
- FlutterDocumentScannerPlatform()
- Constructs a FlutterDocumentScannerPlatform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
adjustingPerspective(
{required Uint8List byteData, required Contour contour}) → Future< Uint8List?> -
Based on the given Contour.points, the perspective is created
and a new image is returned
Uint8List
-
applyFilter(
{required Uint8List byteData, required FilterType filter}) → Future< Uint8List?> -
Apply the selected
filter
with the opencv library -
findContourPhoto(
{required Uint8List byteData, required double minContourArea}) → Future< Contour?> - Apply filters to the image with opencv Then get the contours and return only the largest one that has four sides (this is done from native code)
-
getVersionOpenCV(
) → Future< String?> - Get the version of the opencv library
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ FlutterDocumentScannerPlatform
-
The default instance of FlutterDocumentScannerPlatform to use.
getter/setter pair