According to the specification, doc comments can be placed before top-level getters and setters, and there is no exception for getters and setters with private names. However, doc comments are currently not generated for top-level getters and setters with private names.
I’ll add a link to the appropriate tests after the PR containing those tests lands.
Dart SDK version: 3.12.0-49.0.dev (dev) (Tue Jan 20 08:02:46 2026 -0800) on "windows_x64".