easy_enum_generator 2.0.2 easy_enum_generator: ^2.0.2 copied to clipboard
Automatically generating `EasyEnum` extensions code for classes with `@EasyEnum()` annotation.
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
}