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 3deba40 commit 01b2a8fCopy full SHA for 01b2a8f
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!.trim())
+ true == valueCandidate?.isNotEmpty && !isEmail(valueCandidate ?? '')
155
? errorText ?? FormBuilderLocalizations.current.emailErrorText
156
: null;
157
0 commit comments