![Kabo on Twitter: "Dart 2.15でEnumがちょっと便利に。 ・Animal .cat.name ⇒ 'cat' describeEnum()と違って「Animal.」が付かなくて使いやすい ・Animal .values.byName('cat') ⇒ Animal. cat ・Animal .values.asNamedMap() ⇒ {cat: Animal. cat, dog: Animal. dog ... Kabo on Twitter: "Dart 2.15でEnumがちょっと便利に。 ・Animal .cat.name ⇒ 'cat' describeEnum()と違って「Animal.」が付かなくて使いやすい ・Animal .values.byName('cat') ⇒ Animal. cat ・Animal .values.asNamedMap() ⇒ {cat: Animal. cat, dog: Animal. dog ...](https://pbs.twimg.com/media/FAvrwFlVcAEh6vh.png)
Kabo on Twitter: "Dart 2.15でEnumがちょっと便利に。 ・Animal .cat.name ⇒ 'cat' describeEnum()と違って「Animal.」が付かなくて使いやすい ・Animal .values.byName('cat') ⇒ Animal. cat ・Animal .values.asNamedMap() ⇒ {cat: Animal. cat, dog: Animal. dog ...
👨🏼💻Flutter| Enhanced Enums: The Powerful Feature of Dart 2.17(New feature of Flutter 3.0) | by Emre Ugur Yalcin | Huawei Developers | Medium
![flutter analyze does not detect returns from switch statement with all enum cases · Issue #37498 · dart-lang/sdk · GitHub flutter analyze does not detect returns from switch statement with all enum cases · Issue #37498 · dart-lang/sdk · GitHub](https://user-images.githubusercontent.com/1078012/61046458-19ef8580-a3d5-11e9-994c-fe816864bb5b.png)