@@ -23,9 +23,7 @@ void main() {
2323}
2424
2525void _registerListeners () {
26- chrome.runtime.onMessage.addListener (
27- allowInterop (_handleRuntimeMessages),
28- );
26+ chrome.runtime.onMessage.addListener (allowInterop (_handleRuntimeMessages));
2927 // The only extension allowed to send messages to this extension is the
3028 // AngularDart DevTools extension. Its permission is set in the manifest.json
3129 // externally_connectable field.
@@ -34,8 +32,9 @@ void _registerListeners() {
3432 );
3533 // The only external service that sends messages to the Dart Debug Extension
3634 // is Cider.
37- chrome.runtime.onConnectExternal
38- .addListener (allowInterop (handleCiderConnectRequest));
35+ chrome.runtime.onConnectExternal.addListener (
36+ allowInterop (handleCiderConnectRequest),
37+ );
3938 // Update the extension icon on tab navigation:
4039 chrome.tabs.onActivated.addListener (
4140 allowInterop ((ActiveInfo info) async {
@@ -50,11 +49,13 @@ void _registerListeners() {
5049 }
5150 }),
5251 );
53- chrome.webNavigation.onCommitted
54- .addListener (allowInterop (_detectNavigationAwayFromDartApp));
52+ chrome.webNavigation.onCommitted.addListener (
53+ allowInterop (_detectNavigationAwayFromDartApp),
54+ );
5555
56- chrome.commands.onCommand
57- .addListener (allowInterop (_maybeSendCopyAppIdRequest));
56+ chrome.commands.onCommand.addListener (
57+ allowInterop (_maybeSendCopyAppIdRequest),
58+ );
5859}
5960
6061Future <void > _handleRuntimeMessages (
@@ -214,19 +215,20 @@ bool _isInternalNavigation(NavigationInfo navigationInfo) {
214215
215216DebugInfo _addTabInfo (DebugInfo debugInfo, {required Tab tab}) {
216217 return DebugInfo (
217- (b) => b
218- ..appEntrypointPath = debugInfo.appEntrypointPath
219- ..appId = debugInfo.appId
220- ..appInstanceId = debugInfo.appInstanceId
221- ..appOrigin = debugInfo.appOrigin
222- ..appUrl = debugInfo.appUrl
223- ..authUrl = debugInfo.authUrl
224- ..extensionUrl = debugInfo.extensionUrl
225- ..isInternalBuild = debugInfo.isInternalBuild
226- ..isFlutterApp = debugInfo.isFlutterApp
227- ..workspaceName = debugInfo.workspaceName
228- ..tabUrl = tab.url
229- ..tabId = tab.id,
218+ (b) =>
219+ b
220+ ..appEntrypointPath = debugInfo.appEntrypointPath
221+ ..appId = debugInfo.appId
222+ ..appInstanceId = debugInfo.appInstanceId
223+ ..appOrigin = debugInfo.appOrigin
224+ ..appUrl = debugInfo.appUrl
225+ ..authUrl = debugInfo.authUrl
226+ ..extensionUrl = debugInfo.extensionUrl
227+ ..isInternalBuild = debugInfo.isInternalBuild
228+ ..isFlutterApp = debugInfo.isFlutterApp
229+ ..workspaceName = debugInfo.workspaceName
230+ ..tabUrl = tab.url
231+ ..tabId = tab.id,
230232 );
231233}
232234
@@ -279,9 +281,7 @@ void _setDefaultIcon(int tabId) {
279281 final iconPath =
280282 isDevMode ? 'static_assets/dart_dev.png' : 'static_assets/dart_grey.png' ;
281283 setExtensionIcon (IconInfo (path: iconPath));
282- setExtensionPopup (
283- PopupDetails (popup: '' , tabId: tabId),
284- );
284+ setExtensionPopup (PopupDetails (popup: '' , tabId: tabId));
285285}
286286
287287Future <DebugInfo ?> _fetchDebugInfo (int tabId) {
0 commit comments