DialogInputValidator

a custom input validator

Parameters

Types

Link copied to clipboard
sealed class Result

Validator results

Functions

Link copied to clipboard
fun check(value: String)

runs the validation function for the provided value and saves the result inside the state

Link copied to clipboard

gets the current error message

Link copied to clipboard

checks if the current state is valid

fun isValid(value: String): Boolean

runs the validation function and returns its result (without changing this validators state)

Link copied to clipboard