catchOnError function
Implementation
void catchOnError(error, {Function? catchErrorOption}) {
if (kDebugMode) print(error);
catchErrorOption;
throw CustomFirebaseAuthException('Something Went Wrong $error');
}
void catchOnError(error, {Function? catchErrorOption}) {
if (kDebugMode) print(error);
catchErrorOption;
throw CustomFirebaseAuthException('Something Went Wrong $error');
}