C Enum
Define Enum
Define Enum
Dart's enum is similar to Java's enum, support both name and fields like other classes.
Enum is a type that has a fixed set of values. It is useful to represent a set of related constants.
Go does not have enum. You can simulate using constant integer or string by defining a type.
Java's enum not only includes names but can also have fields like other classes.
Rust Enum is not named integer like C, it is tagged union.
TypeScript supports numeric and string enum