showError method
Implementation
void showError({required dynamic err, required BuildContext context}) {
final error = err as FirebaseAuthException;
showDialog(
context: context,
builder: (context) => AlertDialog(
title: Text(error.code),
content: Text(
"${error.message} \n\n please try again",
),
backgroundColor: Theme.of(context).errorColor,
),
);
}