Everything you need to know about Enum with Flutter and Dart
Everything you need to know about Enum with Flutter and Dart
lyabs.hashnode.dev Everything you need to know about Enum with Flutter and Dart
Enumerations, often abbreviated by enum, are special class types that allow a limited number of constants to be represented. Why use an enum rather than a class? Enum makes it possible to represent a limited number of constants, allowing better reada...
Here's a nice simple article explaining enhanced enums that have been around for a while but may be something overlooked. Between these and sealed classes I think Dart has an excellent story for pattern matching.
0
comments