handleExceptionOTP method

void handleExceptionOTP(
  1. dynamic e
)

Implementation

void handleExceptionOTP(dynamic e) {
  String? error = _getErrorCode(e);
  if (error != null && errors.containsKey(error) && errors[error] != null) {
    errors[error]!.call();
  } else if (Common.supperAdmin || kDebugMode) {
    Get.snackbar(
      Message.getMessage('REGISTER_THONG_BAO'),
      e.toString(),
      snackPosition: SnackPosition.TOP,
      duration: const Duration(seconds: 5),
    );
  }
}