Initiates the form submission process.
This method calls the onSubmit method and updates the form state accordingly.
Future<void> submit() => _onSubmit();