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