MethodChannelFlutterDocumentScanSdk class
An implementation of FlutterDocumentScanSdkPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- FlutterDocumentScanSdkPlatform
- MethodChannelFlutterDocumentScanSdk
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
detectBuffer(
Uint8List bytes, int width, int height, int stride, int format) → Future< List< DocumentResult> > -
Document edge detection.
bytes
- bytes of the image.width
- width of the image.height
- height of the image.stride
- stride of the image.format
- format of the image. Returns a List of DocumentResult.override -
detectFile(
String file) → Future< List< DocumentResult> > -
Document edge detection.
file
- path to the file. Returns a List of DocumentResult.override -
getParameters(
) → Future< String?> -
Get the current parameters as a JSON string
override
-
getPlatformVersion(
) → Future< String?> -
override
-
init(
String key) → Future< int?> -
Initialize the SDK
override
-
normalizeBuffer(
Uint8List bytes, int width, int height, int stride, int format, dynamic points) → Future< NormalizedImage?> -
Normalize documents.
bytes
- bytes of the image.width
- width of the image.height
- height of the image.stride
- stride of the image.format
- format of the image.points
- points of the document.override -
normalizeFile(
String file, dynamic points) → Future< NormalizedImage?> -
Normalize documents.
file
- path to the file.points
- points of the document.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
save(
String filename) → Future< int?> -
Save a document.
override
-
setParameters(
String params) → Future< int?> -
Set parameters for the document scanner
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited