Unverified Commit 3c2cd015 authored by Polina Cherkasova's avatar Polina Cherkasova Committed by GitHub

Inspector should not hold callback from garbage collection. (#130436)

parent 0e543889
......@@ -47,6 +47,7 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
void registerServiceExtension({
required String name,
required ServiceExtensionCallback callback,
required RegisterServiceExtensionCallback registerExtension,
}) {
assert(!extensions.containsKey(name));
extensions[name] = callback;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment