loginByEmail static method Null safety
Signs in a user with their email
and password
.
Implementation
static Future<LCUser> loginByEmail(String email, String password) {
if (isNullOrEmpty(email)) {
throw ArgumentError.notNull('email');
}
if (isNullOrEmpty(password)) {
throw ArgumentError.notNull('password');
}
Map<String, dynamic> data = {'email': email, 'password': password};
return _login(data);
}