CardFieldInputDetails class

User input details.

Annotations
  • @freezed

Constructors

CardFieldInputDetails({required bool complete, String? last4, int? expiryMonth, int? expiryYear, String? postalCode, String? brand, String? number, String? cvc, @Default(CardValidationState.Unknown) CardValidationState validExpiryDate, @Default(CardValidationState.Unknown) CardValidationState validCVC, @Default(CardValidationState.Unknown) CardValidationState validNumber})
const
factory
CardFieldInputDetails.fromJson(Map<String, dynamic> json)
factory

Properties

brand String?
Brand of the card.
no setterinherited
complete bool
Indicates whether the card field input is complete.
no setterinherited
copyWith → $CardFieldInputDetailsCopyWith<CardFieldInputDetails>
no setterinherited
cvc String?
CVC code. This information is not available by default to comply with the PCI compliance
no setterinherited
expiryMonth int?
Month of the entered expiry date of the card.
no setterinherited
expiryYear int?
Year of the entered expiry date of the card.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
last4 String?
Last 4 digits of the entered card number.
no setterinherited
number String?
Card number. This information is not available by default to comply with the PCI compliance
no setterinherited
postalCode String?
Entered postcal code.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validCVC CardValidationState
The CardValidationState of the entered cvc.
no setterinherited
validExpiryDate CardValidationState
The CardValidationState of the entered expiry date.
no setterinherited
validNumber CardValidationState
The CardValidationState of the entered card number.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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