loginByMobilePhoneNumber static method Null safety
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);
}