easy_enum_generator 2.0.2 copy "easy_enum_generator: ^2.0.2" to clipboard
easy_enum_generator: ^2.0.2 copied to clipboard

Automatically generating `EasyEnum` extensions code for classes with `@EasyEnum()` annotation.

example/main.dart

import 'lib/example_usage.dart';

void main(List<String> arguments) {
  print('test:');

  var test = Test('name', SimpleState.paused, SomeRating.none);

  print('paused'.simpleState == test.state); //true

  print(SimpleState.paused.value); //paused

  print('none'.theRating == test.rating); //true

  print(SomeRating.none.theValue); //none
}
2
likes
150
pub points
0%
popularity

Publisher

unverified uploader

Automatically generating `EasyEnum` extensions code for classes with `@EasyEnum()` annotation.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, build, easy_enum, json_serializable, recase, source_gen

More

Packages that depend on easy_enum_generator