Skip to content

Commit 5e6468e

Browse files
committed
Refactored to use the save and validate methods for saveAndValidate.
1 parent dc128cb commit 5e6468e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/form_builder.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ class FormBuilderState extends State<FormBuilder> {
125125
}
126126

127127
bool saveAndValidate() {
128-
_formKey.currentState.save();
129-
return _formKey.currentState.validate();
128+
save();
129+
return validate();
130130
}
131131

132132
void reset() {

0 commit comments

Comments
 (0)