DocumentDetectorEvent class abstract

DocumentDetectorEvent is an abstract class representing different types of events.

It is used to create an instance of one of the event subclasses based on a map input, which comes from the SDK's result.

Depending on the event type, it creates an instance of either DocumentDetectorEventClosed, DocumentDetectorEventSuccess, or DocumentDetectorEventFailure. If the event is not recognized, it throws an internal exception.

This setup allows for a structured and type-safe way to handle different outcomes of the document capture process in the SDK.

Implementers

Constructors

DocumentDetectorEvent.fromMap(Map map)
factory

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

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

Constants

canceledEvent → const String
failureEvent → const String
resultMappingError → const String
successEvent → const String