We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03c168c commit 1e8add7Copy full SHA for 1e8add7
1 file changed
packages/devtools_app/lib/src/framework/home_screen.dart
@@ -163,13 +163,9 @@ class _ConnectInputState extends State<ConnectInput> with BlockingActionMixin {
163
void initState() {
164
super.initState();
165
connectDialogController = TextEditingController();
166
- assert(() {
167
- _debugInitVmServiceCache();
168
- return true;
169
- }());
+ if (kDebugMode) _debugInitVmServiceCache();
170
}
171
172
- // ignore: unused-code, TODO(https://github.com/flutter/devtools/issues/9907): false positive.
173
void _debugInitVmServiceCache() async {
174
// We only do this in debug mode as it speeds iteration for DevTools
175
// developers who tend to repeatedly restart DevTools to debug the same
0 commit comments