a function on whether the current text is valid (correct set of characters etc) shall return null if correct and an error-string otherwise
text
final String? Function(String? text) verify;