xsahil03x / super_enum

Create super-powered dart enums similar to sealed classes in Kotlin
https://pub.dev/packages/super_enum
MIT License
116 stars 13 forks source link

super_enum is not working with analyzer ^0.40.1 #63

Closed SaeedMasoumi closed 4 years ago

SaeedMasoumi commented 4 years ago

The current version of super enum will not work with dart 2.10, analyzer 0.40.1, and build_runner 2.10.3 because there is a breaking change on usedClass.toTypeValue().getDisplayString() API which needs the withNullability to pass.

Also, overriding analyzer version will not help.

Related Issues:

NikitaMasev commented 4 years ago

The same issue. Other packages already works with analyzer ^0.40.4, but super_enum_generator 0.5.0 depends on analyzer ^0.39.2.

xsahil03x commented 4 years ago

Fixed in #64, will release soon.