CardValidationResult class

Result of card validation.

Annotations

Constructors

CardValidationResult({required bool isValid, required Map<String, String> errors, required CardBrand cardBrand})
Creates a new CardValidationResult instance.
const

Properties

allErrors List<String>
Returns all error messages as a list.
no setter
cardBrand CardBrand
Detected card brand.
final
errors Map<String, String>
Map of field names to error messages.
final
hashCode int
The hash code for this object.
no setterinherited
isValid bool
Whether all validation checks passed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getError(String field) String?
Returns the error message for the specified field, or null if no error.
hasError(String field) bool
Returns true if the specified field has an error.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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