enume 1.0.1 enume: ^1.0.1 copied to clipboard
Enume - collection of useful enum extensions for dart. Like a Name-Method and TypedEnums for the ability to assign specific values each of the enumerated types.
import 'package:example/animal.dart';
import 'package:example/colors.dart';
import 'package:example/difficulty.dart';
void main() {
// asString
var animal = Animal.fish;
print(animal.name);
// TypedEnums
print(Colors.blue.value);
final experience = 45;
if (experience > Difficulty.hard.value) {
print('Lorem ipsum dolor sit amet...');
}
}