Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
wellgenio committed Aug 25, 2024
1 parent 37ae04a commit 8e29b1c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,12 @@ You can apply CascadeMode to your validation chain using the cascaded method:

```dart
return notEmpty() //
.cascade(CascadeMode.stopOnFirstFailure); // change cascade mode
.minLength(5, message: 'Must be at least 8 characters long')
.mustHaveLowercase()
.mustHaveUppercase()
.mustHaveNumbers()
.mustHaveSpecialCharacter()
.cascade(CascadeMode.stopOnFirstFailure); // change cascade mode
```

## When condition
Expand Down

0 comments on commit 8e29b1c

Please sign in to comment.