enume 1.0.1 copy "enume: ^1.0.1" to clipboard
enume: ^1.0.1 copied to clipboard

discontinued
outdated

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.

example/lib/example.dart

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...');
  }
}
8
likes
150
points
76
downloads

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on enume