submit method
Implementation
bool submit() {
if (_formKey.currentState!.validate()) {
_formKey.currentState!.save();
widget.onSubmit();
return true;
}
return false;
}
bool submit() {
if (_formKey.currentState!.validate()) {
_formKey.currentState!.save();
widget.onSubmit();
return true;
}
return false;
}