loginByMobilePhoneNumber static method

Future<LCUser> loginByMobilePhoneNumber(
  1. String mobile,
  2. String password
)

Signs in a user with their mobile number and password.

Implementation

static Future<LCUser> loginByMobilePhoneNumber(
    String mobile, String password) {
  if (isNullOrEmpty(mobile)) {
    throw ArgumentError.notNull('mobile');
  }
  if (isNullOrEmpty(password)) {
    throw ArgumentError.notNull('password');
  }
  Map<String, dynamic> data = {
    'mobilePhoneNumber': mobile,
    'password': password
  };
  return _login(data);
}