@@ -23,9 +23,7 @@ void main() {
23
23
}
24
24
25
25
void _registerListeners () {
26
- chrome.runtime.onMessage.addListener (
27
- allowInterop (_handleRuntimeMessages),
28
- );
26
+ chrome.runtime.onMessage.addListener (allowInterop (_handleRuntimeMessages));
29
27
// The only extension allowed to send messages to this extension is the
30
28
// AngularDart DevTools extension. Its permission is set in the manifest.json
31
29
// externally_connectable field.
@@ -34,8 +32,9 @@ void _registerListeners() {
34
32
);
35
33
// The only external service that sends messages to the Dart Debug Extension
36
34
// is Cider.
37
- chrome.runtime.onConnectExternal
38
- .addListener (allowInterop (handleCiderConnectRequest));
35
+ chrome.runtime.onConnectExternal.addListener (
36
+ allowInterop (handleCiderConnectRequest),
37
+ );
39
38
// Update the extension icon on tab navigation:
40
39
chrome.tabs.onActivated.addListener (
41
40
allowInterop ((ActiveInfo info) async {
@@ -50,11 +49,13 @@ void _registerListeners() {
50
49
}
51
50
}),
52
51
);
53
- chrome.webNavigation.onCommitted
54
- .addListener (allowInterop (_detectNavigationAwayFromDartApp));
52
+ chrome.webNavigation.onCommitted.addListener (
53
+ allowInterop (_detectNavigationAwayFromDartApp),
54
+ );
55
55
56
- chrome.commands.onCommand
57
- .addListener (allowInterop (_maybeSendCopyAppIdRequest));
56
+ chrome.commands.onCommand.addListener (
57
+ allowInterop (_maybeSendCopyAppIdRequest),
58
+ );
58
59
}
59
60
60
61
Future <void > _handleRuntimeMessages (
@@ -214,19 +215,20 @@ bool _isInternalNavigation(NavigationInfo navigationInfo) {
214
215
215
216
DebugInfo _addTabInfo (DebugInfo debugInfo, {required Tab tab}) {
216
217
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,
230
232
);
231
233
}
232
234
@@ -279,9 +281,7 @@ void _setDefaultIcon(int tabId) {
279
281
final iconPath =
280
282
isDevMode ? 'static_assets/dart_dev.png' : 'static_assets/dart_grey.png' ;
281
283
setExtensionIcon (IconInfo (path: iconPath));
282
- setExtensionPopup (
283
- PopupDetails (popup: '' , tabId: tabId),
284
- );
284
+ setExtensionPopup (PopupDetails (popup: '' , tabId: tabId));
285
285
}
286
286
287
287
Future <DebugInfo ?> _fetchDebugInfo (int tabId) {
0 commit comments