signUpWithEmailNPassword method

  1. @override
Future<Response<UserCredential>> signUpWithEmailNPassword({
  1. required String email,
  2. required String password,
})
override

Implementation

@override
Future<Response<UserCredential>> signUpWithEmailNPassword({
  required String email,
  required String password,
}) {
  try {
    return repository
        .signUpWithEmailNPassword(email: email, password: password)
        .onError((_, __) => Response<UserCredential>(exception: "$_"));
  } catch (_) {
    return Future.value(Response<UserCredential>(exception: "$_"));
  }
}