Try using go to symbol in workspace (bound to ⌘T by default). This should be implemented by dart and other language extensions.
It’s up to each extension to determine how this feature works. JS/TS includes symbols from imported libraries for example, but this behavior may differ between extensions