next

abstract fun next(current: FieldValidationMode, isValid: Boolean): FieldValidationMode(source)

Determines the next validation mode based on the current mode and validation result.

Return

The next validation mode to use.

Parameters

current

The current validation mode.

isValid

Whether the last validation passed.