{"id":26857003,"url":"https://github.com/dimibe/enumerated","last_synced_at":"2026-05-19T05:37:55.482Z","repository":{"id":39611046,"uuid":"505584188","full_name":"Dimibe/enumerated","owner":"Dimibe","description":"Dart package with utilities around dart enums","archived":false,"fork":false,"pushed_at":"2022-10-14T11:28:00.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-19T09:02:01.662Z","etag":null,"topics":["dart","enum","flutter","package"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/enumerated","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dimibe.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-20T20:12:04.000Z","updated_at":"2022-10-07T19:14:35.000Z","dependencies_parsed_at":"2022-09-15T21:40:35.936Z","dependency_job_id":null,"html_url":"https://github.com/Dimibe/enumerated","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dimibe%2Fenumerated","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dimibe%2Fenumerated/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dimibe%2Fenumerated/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dimibe%2Fenumerated/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dimibe","download_url":"https://codeload.github.com/Dimibe/enumerated/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246399816,"owners_count":20770907,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","enum","flutter","package"],"created_at":"2025-03-31T00:30:14.618Z","updated_at":"2025-09-21T22:19:19.885Z","avatar_url":"https://github.com/Dimibe.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![pub package](https://img.shields.io/pub/v/enumerated.svg)](https://pub.dev/packages/enumerated)\n[![package publisher](https://img.shields.io/pub/publisher/enumerated.svg)](https://pub.dev/packages/enumerated)\n![build](https://github.com/Dimibe/enumerated/actions/workflows/dart.yaml/badge.svg??branch=main)\n\nThe enumerated package adds additional functionality around dart enums. \nOne main aspect of this package is the `EnumSet`.  \n\n## Features\n\n* EnumSet - A `Set` implementation especially for enums. \n* EnumSet provides additional functionalities and more efficient implementations for specific set operations. \n\n## Getting started\n\nAdd the package to your pubspec.yaml:\n\n```yaml\n enumerated: ^0.1.1\n ```\n \n In your dart file, import the library:\n\n ```Dart\nimport 'package:enumerated/enumerated.dart';\n ``` \n\n## Usage\n\n#### Creating an EnumSet: \n\nIn order to create an `EnumSet` you can choose from one of the following factory methods:\n* `EnumSet.of(List, Iterable)`: Creates an `EnumSet` with the given values.  \n* `EnumSet.noneOf(List)`: Creates an empty `EnumSet`.  \n* `EnumSet.allOf(List)`:  Creates an `EnumSet` with all values of the given enum.\n* `EnumSet.complementOf(EnumSet)`:  Creates an `EnumSet` with all values which are not contained in the other `EnumSet`\n\n```dart\nenum Numbers {one, two, three;}\nvar set1 = EnumSet.of(Numbers.values, [Numbers.one]);\nvar set2 = EnumSet.noneOf(Numbers.values);\nvar set3 = EnumSet.allOf(Numbers.values);\nvar set4 = EnumSet.complementOf(set1);\n```\n\nNote that for every factory method other than `complementOf` you need to provide the full list of possible enum values as first parameter. \n\n#### Adding and removing data:\n\n```dart\nset1.add(Numbers.two);\nset1.addAll(set3);\nset1.remove(Numbers.one);\nset1.removeAll(set3);\n```\n\n#### Other useful functionalities: \n\n* fill(): Will add all enum values to the set. \n\n```dart\nset1.fill();\n```\n\n* complement(): Will return a new `EnumSet` with all values which are not contained in the current set. \n\n```dart\nset1.complement();\n```\n\n* copy(): Creates a exact copy of the current set. \n\n```dart\nset1.copy();\n```\n\n\n## Additional information\n\nIf you have ideas for this package or want to help develop it yourself, \ndon't hesitate to open an issue or create a pull request. I am grateful for any help!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimibe%2Fenumerated","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimibe%2Fenumerated","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimibe%2Fenumerated/lists"}