-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor specialised variants into subclasses #80
base: main
Are you sure you want to change the base?
Conversation
), | ||
].indexed) { | ||
test( | ||
'(${testCase.$1}): ${testCase.$2.test} should be valid between ${testCase.$2.start} - ${testCase.$2.end} when testing inclusive and with included time', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: in for loop I would extract index and test case so we dont have to use $1 and $2 in here.
storybook/lib/debug_model.dart
Outdated
// ..satisfy( | ||
// (value) { | ||
// if (!vipInput.value) { | ||
// return true; | ||
// } | ||
|
||
return value >= 18; | ||
}, | ||
devError: (_) => 'When VIP enabled you must be at least 18 years old.', | ||
key: _ErrorKeys.ageRestriction, | ||
)) | ||
// return value >= 18; | ||
// }, | ||
// devError: (_) => 'When VIP enabled you must be at least 18 years old.', | ||
// key: _ErrorKeys.ageRestriction, | ||
// ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessary comment
Also since we are doing breaking change, we can do these fixes from analysis options? avoid-commented-out-code: false # code examples in comments |
typedef DateTimeValidatorFactory = ValidatorInstance<DateTime> Function(DateTimeValidator validator); | ||
typedef DateTimeValidatorFactoryNullable = ValidatorInstance<DateTime?> Function(DateTimeValidatorNullable validator); | ||
|
||
class DateTimeValidator extends GladeValidator<DateTime> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add isBefore and isAfter, maybe also shorthand for isBeforeNow and isAfterNow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
DCM report✅ no issues found! Full report: https://github.com/netglade/glade_forms/runs/36366388403 |
No description provided.