Closed dzen1984 closed 2 years ago
Hey @dzen1984 the problem is you dart SDK version, in the version 2.15.0 was added "name" to Enum.
Upgrading your dart SDK must fix the error, more info here: https://dart.dev/get-dart#install
The problem is in the "pubspec.yaml" the required SDK is:
environment:
sdk: '>=2.14.0 <3.0.0'
and it should be:
environment:
sdk: '>=2.15.0 <3.0.0'
More info: https://github.com/dart-lang/sdk/blob/main/CHANGELOG.md#dartcore-2
Cannot build empty flutter project with dependency basic_utils: ^4.0.1
The source code from EnumUtils:
Indeed, the class Enum does not contain the field "name". Source code for Enum:
Have I missed some things?