enumerated 0.1.1 copy "enumerated: ^0.1.1" to clipboard
enumerated: ^0.1.1 copied to clipboard

A dart package which provides utilities araound dart enums like an EnumSet.

example/enumerated_example.dart

import 'package:enumerated/enumerated.dart';

enum Numbers {
  one,
  two,
  three,
  four,
  five;
}

void main() {
  var set1 = EnumSet<Numbers>.of(Numbers.values, {Numbers.one, Numbers.two});
  var set2 = {Numbers.three};
  var set1set2Union = set1.union(set2);
  print(set1set2Union);
  var set1complement = set1.complement();
  print(set1complement);
}
1
likes
150
points
47
downloads

Publisher

verified publisherbegnis.dev

Weekly Downloads

A dart package which provides utilities araound dart enums like an EnumSet.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

meta

More

Packages that depend on enumerated