login method

Future<bool> login({
  1. required String email,
  2. required String password,
})

Implementation

Future<bool> login({
  required String email,
  required String password,
}) async {
  try {
    _currentUser = await RealmService.app.logIn(
      Credentials.emailPassword(email, password),
    );

    return true;
  } on Exception catch (err) {
    print("$err");
    return false;
  }
}