google / google/built_value.dart

EnumClass should use List instead of Set.

Open
#693 3 comments 3 reactions 1 assignee Claimed by @davidmorgan View on GitHub
p2 / feature request
Dominant language
Dart
Stars
886
Forks
195
Avg merge
1d 11h
Merged PRs (30d)
4

Description

Currently EnumClass holds its values in a `BuiltSet`, but although we can convert it to a list using `toList()`, `enum.values` are lists and this would reflect better the Dart API.

Using lists is useful when we want the index of a enum value.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.