reason property
final
TextFieldState for blocking reason.
Implementation
final TextFieldState reason = TextFieldState(
onFocus: (s) {
s.error.value = null;
if (s.text.isNotEmpty) {
try {
BlocklistReason(s.text);
} on FormatException {
s.error.value = 'err_blocklist_reason_does_not_meet_regexp'.l10n;
}
}
},
);