AdaptySDK-Flutter icon indicating copy to clipboard operation
AdaptySDK-Flutter copied to clipboard

Declare AdaptyErrorCode static variables as constant

Open jezsung opened this issue 1 year ago • 1 comments

The AdaptyErrorCode variables are currently declared as static final.

This makes it impossible to use the error codes with the switch expression.

I suggest the following code changes to all static variables:

class AdaptyErrorCode {
  static final int unknown = 0;
  // to
  static const int unknown = 0;
...

jezsung avatar Jun 25 '24 07:06 jezsung

Hi @jezsung! That seems to be a good enhancement. I think we will implement that in the next release. Thank you!

x401om avatar Jul 10 '24 11:07 x401om

Hi @jezsung! Fixed in 3.2.1

x401om avatar Nov 20 '24 17:11 x401om