DocumentScanStateNotifier class

Inheritance

Constructors

DocumentScanStateNotifier.new(Ref<Object?> _ref, DocumentSide side)

Properties

debugState DocumentScanState
A development-only way to access state outside of StateNotifier.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
If a listener has been added using addListener and hasn't been removed yet.
no setterinherited
mounted bool
Whether dispose was called or not.
no setterinherited
onError ↔ ErrorListener?
A callback for error reporting if one of the listeners added with addListener throws.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
side DocumentSide
final
state DocumentScanState
The current "state" of this StateNotifier.
getter/setter pairinherited
stream Stream<DocumentScanState>
A broadcast stream representation of a StateNotifier.
no setterinherited

Methods

addListener(Listener<DocumentScanState> listener, {bool fireImmediately = true}) → RemoveListener
Subscribes to this object.
inherited
capturePhoto(BuildContext context) Future<void>
clearCapturedImage() → void
dismissError() → void
dispose() → void
Frees all the resources associated with this object.
override
forceClear() → void
forceSetState(DocumentScanState newState) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processImage(String setupFailedError, String imageDataTooLargeError, String serverCouldNotProcessImageError, String mediaFormatNotSupportedError) Future<void>
resetCamera(BuildContext context) Future<void>
resetForNewSide() → void
retakePhoto(BuildContext context) → void
simulatePreparationProgress() Future<void>
startSession(String setupFailedError) Future<void>
startVideoRecording() Future<void>
stopSession() Future<void>
stopVideoRecording() Future<File?>
toString() String
A string representation of this object.
inherited
updateShouldNotify(DocumentScanState old, DocumentScanState current) bool
Whether to notify listeners or not when state changes
inherited
uploadImageAndVideo(File image, File? videoFile, String setupFailedError, String imageDataTooLargeError, String serverCouldNotProcessImageError, String mediaFormatNotSupportedError) Future<void>

Operators

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

Constants

documentAspectRatio → const double