Created
October 21, 2020 21:16
-
-
Save rapPayne/97f4cbef546a8aa12cdec9b6a00d1b33 to your computer and use it in GitHub Desktop.
_doRegister after saving
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void _doRegister() { | |
| // TODO 3: Add validation and saving here | |
| // 1 | |
| if (_key.currentState.validate()) { | |
| // Commit the field values to their variables | |
| // 2 | |
| _key.currentState.save(); | |
| // 3 | |
| print(""" | |
| The user has registered with an email address of '${_loginObject['email']}' | |
| and a password of '${_loginObject['password']}' | |
| """); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment