signUpByAccount static method

Future<NCMBUser> signUpByAccount(
  1. String userName,
  2. String password
)

ユーザー登録を行う userName ユーザー名 password パスワード

Implementation

static Future<NCMBUser> signUpByAccount(
    String userName, String password) async {
  Map _fields = {'userName': userName, 'password': password};
  NCMBRequest r = new NCMBRequest();
  Map response = await r.post('users', _fields);
  _fields.remove('password');
  var user = NCMBUser();
  await user.setLoginResponse(response);
  return user;
}