doValidate

open fun doValidate(): String?(source)

Validates the state, and indicates whether and why it is invalid.

Return

null if the state is valid, or a string explaining why the state is invalid