QrValidationResult class

Captures the status or a QR code validation operations, as well as the rendered and validated data / object so that it can be used in any secondary operations (to avoid re-rendering). It also keeps any exception that was thrown.

Constructors

QrValidationResult({required QrValidationStatus status, QrCode? qrCode, Exception? error})
Create a new validation result instance.

Properties

error Exception?
The exception that was thrown in the event of a non-valid result (if any).
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isValid bool
The validation result returned a status of valid;
no setter
qrCode QrCode?
The rendered QR code data / object.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status QrValidationStatus
The status of the validation operation.
getter/setter pair

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