Skip to content

Commit

Permalink
readme doc done till pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
grappetite-ali committed Sep 6, 2019
1 parent 4372db0 commit 47994b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ This code will validate TextFormField's value and show error in case of field's

### Pattern
`Validators.patternString(String pattern, String errorMessage)` and `Validators.patternRegExp(RegExp pattern, String errorMessage)` are validators that requires the field's value to match a regex pattern.
Incase of `Validators.patternString`, you need to pass regex like this `r"^[A-Za-z]+$"`

In case of `Validators.patternString`, you need to pass regex like this `r"^[A-Za-z]+$"`

#### Examples
This code will validate TextFormField's value and show error in case of field's value is non-empty and its contains character other than alphabets.
Expand Down

0 comments on commit 47994b8

Please sign in to comment.