validate

abstract fun validate(): Boolean

Validates the field and sets the invalid property based on the result.

The method fires a validated event with the result of the validation.