Skip to content

Commit

Permalink
Edited devError message for isBetween
Browse files Browse the repository at this point in the history
  • Loading branch information
M1chlCZ committed Oct 7, 2024
1 parent f6dcdbd commit 1049406
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion glade_forms/lib/src/validator/int_validator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ class IntValidator extends GladeValidator<int> {
}) =>
satisfy(
(value) => inclusiveInterval ? value >= min && value <= max : value > min && value < max,
devError: devError ?? (value) => 'Value ${value ?? 'NULL'} in not in between $min and $max.',
devError: devError ??
(value) =>
'Value ${value ?? 'NULL'} (inclusiveInterval: $inclusiveInterval) is not in between $min and $max.',
key: key ?? GladeErrorKeys.intCompareError,
shouldValidate: shouldValidate,
);
Expand Down

0 comments on commit 1049406

Please sign in to comment.