catchOnError function

void catchOnError(
  1. dynamic error, {
  2. Function? catchErrorOption,
})

Implementation

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