Issue
The Java APT includes a set of reflective APIs and supporting infrastructure to process program annotations, and I want to know if there is something similar in Dart.
Solution
You can do something similar with the analyzer package. This package allows you to get the AST or Resolved AST (with types) from sources and navigate inside it.
So yes, you can process source codes like with apt.
Answered By - Alexandre Ardhuin Answer Checked By - Katrina (WPSolving Volunteer)