RaastQrValidation class

Result of validateRaastQr.

Constructors

RaastQrValidation({required bool valid, RaastQrKind? kind, required List<RaastQrError> errors, required List<RaastQrWarning> warnings, required ParsedRaastQr? qr})
Creates a validation result.
const

Properties

errors → List<RaastQrError>
Problems that stop payment.
final
hashCode → int
The hash code for this object.
no setteroverride
kind → RaastQrKind?
RaastQrKind.p2p for a person-to-person QR, RaastQrKind.merchant for a merchant QR, null when the text is not a Raast QR.
final
qr → ParsedRaastQr?
The parsed QR, or null if it could not be read.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
valid → bool
true when there are no errors.
final
warnings → List<RaastQrWarning>
Things worth telling the payer.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
JSON form, with the same keys as the npm package.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override