We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c66e5b1 commit a11962eCopy full SHA for a11962e
packages/form_builder_validators/lib/src/form_builder_validators.dart
@@ -151,7 +151,7 @@ class FormBuilderValidators {
151
String? errorText,
152
}) =>
153
(valueCandidate) =>
154
- true == valueCandidate?.isNotEmpty && !isEmail(valueCandidate ?? '')
+ (valueCandidate?.isNotEmpty ?? false) && !isEmail(valueCandidate!)
155
? errorText ?? FormBuilderLocalizations.current.emailErrorText
156
: null;
157
0 commit comments