Skip to main content


When Dart overtook Kotlin as my favorite language I still missed certain features of Kotlin. One was the incredibly powerful switch statement, called "when", that Kotlin had and being able to use that for assignment. Now that Dart 3 is out I now have the equivalent of that again :). It may be missing a couple of edge case features like "in" comparisons but I have to experiment more to determine that. Hats off Dart and Flutter Team. (Screenshot from the "What's New in Dart and Flutter" presentation from #GoogleIO #GoogleIO2023 #flutter #dart #kotlin

Max W. :dartlang: reshared this.