loginByEmail static method

Future<LCUser> loginByEmail(
  1. String email,
  2. String password
)

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);
}