Update doc-import to primary configured import, _goldens_io.dart (#151390)

There is a... restriction in dartdoc, such that a library which is
`@docImport`ed in one library, must be otherwise regularly imported in
some other library. Without this case, dartdoc gets a bit lost about
where the doc-imported library is.

Combine this restriction with analyzer's restriction that it doesn't
super duper handle configuration imports. Since `_goldens_io.dart` is
the "primary" import in all other files, and `_goldens_web.dart` is the
"configured" import, we must only doc-import `_goldens_io.dart`.
This commit is contained in:
Sam Rawlins 2024-07-08 09:55:55 -07:00 committed by GitHub
parent f080102350
commit 00d49b20e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,7 +4,7 @@
/// @docImport 'package:flutter/widgets.dart';
///
/// @docImport '_goldens_web.dart';
/// @docImport '_goldens_io.dart';
/// @docImport 'binding.dart';
/// @docImport 'matchers.dart';
/// @docImport 'widget_tester.dart';