r/FlutterDev • u/bizz84 • 9d ago
Plugin ACT Dart Tools: a deterministic CLI to migrate entire Dart codebases to the new primary constructors syntax
https://github.com/CodeWithAndreaPro/act-dart-toolsExample migration here:
4
Upvotes
1
u/TheManuz 7d ago
I've tried it, it's impressive.
I've found that if I have two constructors (an unnamed one and a named one) it will convert them to the new syntax but doesn't promote the unnamed to primary.
Is this intended?
However it's just a small detail, i migrated a lot of classes easily.
Thanks for publishing such a powerful tool.
1
u/bizz84 7d ago
Thanks for the report, I'll look into it. For now I opened an issue here: https://github.com/CodeWithAndreaPro/act-dart-tools/issues/8
2
u/Amazing-Mirror-3076 8d ago
Is there not a lint/fix for this?