Skip to content

Commit

Permalink
docs: fix nullable validator in README (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
maRci002 authored May 3, 2022
1 parent 006c416 commit f56e1b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class NameInput extends FormzInput<String, NameInputError> {
// Override validator to handle validating a given input value.
@override
NameInputError validator(String value) {
NameInputError? validator(String value) {
return value?.isNotEmpty == true ? null : NameInputError.empty;
}
}
Expand Down

0 comments on commit f56e1b8

Please sign in to comment.