next
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.
Determines the next validation mode based on the current mode and validation result.
The next validation mode to use.
The current validation mode.
Whether the last validation passed.