Dart: Constant Constructor
Mar 26, 2024 · 1 min read · Define a Constant Constructor and make sure that all instance variable are final. Syntax: class Display{ final int x; const Display(this.x, ...); Basically, Constant Constructor have no body. Example: Here is the example using Constant Const...
Join discussion











