DocumentScannerController class
This class is responsible for controlling the scanning process
Constructors
Properties
- bloc → AppBloc
-
Return the
AppBloc
createdno setter -
currentFilterType
→ Stream<
FilterType> -
Stream
FilterType
the current filtering of the documentno setter -
currentPage
→ Stream<
AppPages> -
Stream
AppPages
to know the current pageno setter - hashCode → int
-
The hash code for this object.
no setterinherited
- pictureCropped → Uint8List?
-
Will return the picture cropped on the
CropPhotoDocumentPage
.no setter - pictureTaken → File?
-
Will return the picture taken on the
TakePhotoDocumentPage
.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
statusCropPhoto
→ Stream<
AppStatus> -
Stream
AppStatus
to know the status while the document is being croppedno setter -
statusEditPhoto
→ Stream<
AppStatus> -
Stream
AppStatus
to know the status while editing the document with filtersno setter -
statusSavePhotoDocument
→ Stream<
AppStatus> -
Stream
AppStatus
to know the status while saving the document with all filters and cropping areano setter -
statusTakePhotoPage
→ Stream<
AppStatus> -
Stream
AppStatus
to know the status while taking the pictureno setter
Methods
-
applyFilter(
FilterType type) → Future< void> - Apply FilterType using OpenCV
-
changePage(
AppPages page) → Future< void> - Change current page by AppPages
-
cropPhoto(
) → Future< void> - Cutting the photo and adjusting the perspective then change page to AppPages.editDocument
-
dispose(
) → void -
Dispose the
AppBloc
-
findContoursFromExternalImage(
{required File image, double? minContourArea}) → Future< void> - Find the contour from an external image like gallery
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
savePhotoDocument(
) → Future< void> - Save the document with filter and cropping area It will return it as Uint8List in DocumentScanner
-
takePhoto(
{double? minContourArea}) → Future< void> - Taking the photo
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited