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