CardFormConfiguration class

A configuration model that dictates the configuration for the card form.

Constructors

CardFormConfiguration({bool isCardHolderNameRequired = false, Map<String, String> cardHolderValidations = const {}, bool enableCardNumberValidation = true})
Creates a new CardFormConfiguration.
CardFormConfiguration.fromJson(Map<String, dynamic> json)
Creates a CardFormConfiguration from a JSON map.
factory

Properties

cardHolderValidations Map<String, String>
A map of custom validation rules for the card holder name field. The key represents the error message to display when validation fails, and the value represents the regex pattern string.
final
enableCardNumberValidation bool
A boolean value indicating if MoneyHash should validate the card number.
final
hashCode int
The hash code for this object.
no setterinherited
isCardHolderNameRequired bool
A boolean value indicating whether the cardholder's name field is required in the card form.
final
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
toJson() Map<String, dynamic>
Converts this CardFormConfiguration to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

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