register method
Signs up a new user. You should call this instead of saveInBackground() for new ParseUsers. This will create a new ParseUser on the server, and also persist the session on disk so that you can access the user using currentUser.
A username
and password
must be set before calling register
.
Implementation
Future<ParseUser> register() async {
dynamic params = {};
_data.forEach((key, value) {
params[key] = parseEncoder.encode(value);
});
return FlutterParse._channel
.invokeMethod('register', params)
.then((jsonString) {
return _parseResult(jsonString);
});
}