signUpUser method

Future<Session> signUpUser(
  1. String username,
  2. String password, {
  3. String? name,
  4. String? email,
})

Implementation

Future<Session> signUpUser(String username, String password, {String? name, String? email}) async {
  var props = <String, dynamic>{
    "username": username,
    "password": password
  };
  if (name != null) props["name"] = name;
  if (email != null) props["email"] = email;
  return signUpUserWithProps(props);
}