IsValid

data class IsValid(val isValid: Boolean) : ExpirationDateTextFieldEvent

Event triggered when the expiration date validation status changes. This event indicates whether the entered date is valid according to the validation rules, including checks for past dates and valid month values.

Parameters

isValid

Whether the expiration date is valid

Example:

when (event) {
is ExpirationDateTextFieldEvent.IsValid -> {
if (event.isValid) {
enableNextButton()
} else {
showValidationError()
}
}
}

Constructors

Link copied to clipboard
constructor(isValid: Boolean)

Properties

Link copied to clipboard