Skip to content

Commit

Permalink
fix: overrideCallback in byField
Browse files Browse the repository at this point in the history
  • Loading branch information
wellgenio committed Jan 23, 2025
1 parent 8075437 commit a6449b0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.2.4

* Fix overrideCallback in byField

## 1.2.3

* Added overrideCallback in byField
Expand Down
1 change: 1 addition & 0 deletions lib/src/lucid_validator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ abstract class LucidValidator<E> {
if (errors.isNotEmpty) {
if (overrideCallback != null) {
overrideCallback.call(errors);
return null;
}
return errors.first.message;
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: "A Dart/Flutter package for building strongly typed validation rule
repository: https://github.com/Flutterando/lucid_validation
homepage: https://pub.dev/documentation/lucid_validation/latest/

version: 1.2.3
version: 1.2.4

environment:
sdk: ">=3.0.0 <4.0.0"
Expand Down

0 comments on commit a6449b0

Please sign in to comment.