login static method

Future<LCUser> login(
  1. String username,
  2. String password
)

Signs in a user with their username and password.

Implementation

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