initState

abstract suspend override fun ValidationContext.initState(): TState(source)

Initialises and returns the validation's state, given the value to validate within a ValidationContext containing the values of all declared dependencies.

This method is called by the form manager whenever a new value that needs to be validated by this validation is initialised.