Dart 19 🎯 Const Constructors and Immutable Class Instances
A const constructor is what turns a class from a runtime type into a compile-time value. When a class has a const constructor and all its fields are final, instances can be created at compile time and stored in the program’s read-only data. The compiler canonicalizes those instances: two const Point(1, 2) expressions anywhere in…