Hints class

Defines the hint text for card input widget fields

Constructors

Hints({required String cardNumber, required String expiration, required String cvv, required String postalCode})
Create custom hints by providing values for each field
const
Hints.formFocusedOnly({String cardNumber = "", String expiration = "", String cvv = "", String postalCode = ""})
Create custom hint text in the CardDetailsFormTextField widget when the a field is focused by providing values for only the fields you want to customize
const
Hints.formOnly({String cardNumber = Strings.defaultFormCardNumberHint, String expiration = Strings.defaultExpirationHint, String cvv = Strings.defaultCvvHint, String postalCode = Strings.defaultPostalCodeHint})
Create custom hint text in the CardDetailsFormTextField widget by providing values for only the fields you want to customize
const
Hints.only({String cardNumber = Strings.defaultCardNumberHint, String expiration = Strings.defaultExpirationHint, String cvv = Strings.defaultCvvHint, String postalCode = Strings.defaultPostalCodeHint})
Create custom hints by providing values for only the fields you want to customize
const
Hints.singleLineOnly({String cardNumber = Strings.defaultCardNumberHint, String expiration = Strings.defaultExpirationHint, String cvv = Strings.defaultCvvHint, String postalCode = Strings.defaultPostalCodeHint})
Create custom hint text in the CardDetailsSingleLineTextField widget by providing values for only the fields you want to customize
const

Properties

cardNumber → String
Hint for the card number field
final
cvv → String
Hint for the CVV field
final
expiration → String
Hint for the expiration field
final
hashCode → int
The hash code for this object.
no setterinherited
postalCode → String
Hint for the postal code field
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
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

formDefaults → const Hints
Convenience property for getting a Hints instance with all default values for the CardDetailsFormTextField widget
formFocusedDefaults → const Hints
Convenience property for getting a Hints instance with all default values for the CardDetailsFormTextField widget
singleLineDefaults → const Hints
Convenience property for getting a Hints instance with all default values for the CardDetailsSingleLineTextField widget