INNER CODE UNIT · Dart

getErrorCode

RevenueCat/purchases-flutter · lib/errors.dart:31

  static PurchasesErrorCode getErrorCode(PlatformException e) {
    final errorCode = num.parse(e.code).round();
    if (errorCode >= PurchasesErrorCode.values.length) {
      return PurchasesErrorCode.unknownError;
    }
    return PurchasesErrorCode.values[errorCode];
  }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…