Is there a way to create a sequence diagram or class diagram for dart code? Or any other useful way to visualize the structure (or a vague programmflow) of a dart application.
edit: here is the feature request. If you think that it is a good idea, star it. http://code.google.com/p/dart/issues/detail?id=6558&q=sequence%20diagram&colspec=ID%20Type%20Status%20Priority%20Area%20Milestone%20Owner%20Summary
In the Model Tree, right-click an operation and select Create Sequence diagram for code. You will then be prompted if you want to use the new diagram for forward engineering. The result is a new Sequence Diagram containing the lifeline of that class.
seqdiag file in Visual Studio Code, preview tab will open automatically. If you wish to reopen the preview tab, press CTRL+SHIFT+P or F1 to open Command Palette and execute Show Sequence Diagram Preview command. See js-sequence-diagrams for syntax details.
I don't think there's anything for Dart that will feed your code to Graphviz, but there are two tools in Dart Editor that I find helpful: Tools/Outline and Tools/Callers.
Doing something that would generate a pretty diagram with Graphviz sounds like it would be a great contribution to Dart! If it's been done in the Eclipse world before, then it's probably possible to hack Dart Editor to do it. Alternatively, you can file a bug on dartbug.com requesting the feature.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With