Tag
“clean-code”
The Art of Cascade Notation in Dart: From Smalltalk Heritage to Fluent Code
Discover the origins, mechanics, and best practices of Dart's cascade operator (.. and ?..), borrowed from Smalltalk to write elegant, fluent APIs without temporary variables.
October 27, 2026 AI Assistant
Cleaning Up Dart Codebases: The unnecessary_primary_constructor_body Lint
Eliminating empty {} body blocks in primary constructors when field initializations happen directly in the header signature.
October 24, 2026 AI Assistant
Enum Constructors in Dart 3.13: The unnecessary_const_in_enum_constructor Rule
Enhanced enums in Dart, removing redundant const keywords in enum constructor calls, and keeping enum definitions clean.
October 24, 2026 AI Assistant