Skip to content

Commit 4e93957

Browse files
Update example/lib/sources/submit_button.dart
1 parent fa672cf commit 4e93957

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

example/lib/sources/submit_button.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ class _SubmitButtonFormState extends State<SubmitButtonForm> {
1717

1818
void _updateSubmitButton() {
1919
final formState = _formKey.currentState;
20-
if (formState == null) {
21-
return;
22-
}
20+
if (formState == null) return;
2321

2422
final isSubscribed = formState.instantValue['subscribe'] == true;
2523
final isValid = formState.validate(focusOnInvalid: false);

0 commit comments

Comments
 (0)