Skip to content

Instantly share code, notes, and snippets.

@rapPayne
Created October 21, 2020 21:16
Show Gist options
  • Select an option

  • Save rapPayne/97f4cbef546a8aa12cdec9b6a00d1b33 to your computer and use it in GitHub Desktop.

Select an option

Save rapPayne/97f4cbef546a8aa12cdec9b6a00d1b33 to your computer and use it in GitHub Desktop.
_doRegister after saving
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