Originally published at Shipped Code .
For Kotlin developers, Dart feels familiar within an hour: null safety, type inference, sealed classes, extension methods and named parameters all carry over. The trouble is the few differences that compile without a warning and still behave differently.
A Dart class has no data-class equality, so == compares identity until you override it or use a record. const builds one canonical compile-time object. Privacy is per library (usually one file) through a leading _ , and there is no overloading. A started Future cannot be cancelled like a coroutine Job , because concurrency is one event loop per isolate.
TL;DR. Map your Kotlin habits with the table below. Then watch 2 things in Flutter code, state classes compared by identity (silent UI bugs) and a Future that keeps running after the screen closes. Most other differences fail at compile time.…