IsValid

data class IsValid(val isValid: Boolean) : CardNumberTextFieldEvent

Event triggered when the card number validation status changes. This event indicates whether the entered card number passes the Luhn algorithm validation, helping to determine if the input is valid.

Parameters

isValid

Whether the card number is valid according to the Luhn algorithm

Example:

when (event) {
is CardNumberTextFieldEvent.IsValid -> {
if (event.isValid) {
enableNextButton()
} else {
disableNextButton()
}
}
}

Constructors

Link copied to clipboard
constructor(isValid: Boolean)

Properties

Link copied to clipboard