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 4e93957 commit f080271Copy full SHA for f080271
1 file changed
example/lib/sources/submit_button.dart
@@ -34,9 +34,7 @@ class _SubmitButtonFormState extends State<SubmitButtonForm> {
34
_formKey.currentState?.instantValue['subscribe'] == true;
35
final hasEmail = value?.isNotEmpty ?? false;
36
37
- if (!emailRequired && !hasEmail) {
38
- return null;
39
- }
+ if (!emailRequired && !hasEmail) return null;
40
41
return FormBuilderValidators.compose([
42
FormBuilderValidators.required(),
0 commit comments