doValidate

fun doValidate(): String?(source)

Validates the state of the editor and indicates whether and why it is invalid.

Return

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