Skip to content

Commit 0a1d21d

Browse files
committed
applied dart format
1 parent 8b34746 commit 0a1d21d

File tree

3 files changed

+25
-19
lines changed

3 files changed

+25
-19
lines changed

dwds/lib/src/handlers/dev_handler.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class DevHandler {
154154
ChromeConnection chromeConnection,
155155
AppConnection appConnection,
156156
) async {
157-
ChromeTab? appTab;
157+
ChromeTab? appTab;
158158
ExecutionContext? executionContext;
159159
WipConnection? tabConnection;
160160
final appInstanceId = appConnection.request.instanceId;
@@ -252,7 +252,7 @@ class DevHandler {
252252
}
253253

254254
Future<AppDebugServices> loadAppServices(AppConnection appConnection) async {
255-
final appId = appConnection.request.appId;
255+
final appId = appConnection.request.appId;
256256
var appServices = _servicesByAppId[appId];
257257
if (appServices == null) {
258258
final debugService = await _startLocalDebugService(
@@ -297,7 +297,7 @@ class DevHandler {
297297
} else {
298298
final connection = appConnection;
299299
if (connection == null) {
300-
throw StateError('Not connected to an application.');
300+
throw StateError('Not connected to an application.');
301301
}
302302
if (message is DevToolsRequest) {
303303
await _handleDebugRequest(connection, injectedConnection);

dwds/lib/src/services/chrome_proxy_service.dart

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ typedef SendClientRequest = void Function(Object request);
4040
/// A proxy from the chrome debug protocol to the dart vm service protocol.
4141
class ChromeProxyService implements VmServiceInterface {
4242
final bool useWebSocket;
43+
4344
/// Cache of all existing StreamControllers.
4445
///
4546
/// These are all created through [onEvent].
@@ -150,9 +151,9 @@ class ChromeProxyService implements VmServiceInterface {
150151
this._skipLists,
151152
this.executionContext,
152153
this._compiler,
153-
this.sendClientRequest,
154-
{this.useWebSocket = false}
155-
) {
154+
this.sendClientRequest, {
155+
this.useWebSocket = false,
156+
}) {
156157
final debugger = Debugger.create(
157158
remoteDebugger,
158159
_streamNotify,
@@ -1206,15 +1207,18 @@ class ChromeProxyService implements VmServiceInterface {
12061207

12071208
final response = await completer.future.timeout(
12081209
timeout,
1209-
onTimeout: () =>
1210-
throw TimeoutException(
1211-
'Client did not respond to hot reload request',
1212-
timeout,
1213-
),
1210+
onTimeout:
1211+
() =>
1212+
throw TimeoutException(
1213+
'Client did not respond to hot reload request',
1214+
timeout,
1215+
),
12141216
);
12151217

12161218
if (!response.success) {
1217-
throw Exception(response.errorMessage ?? 'Client reported hot reload failure.');
1219+
throw Exception(
1220+
response.errorMessage ?? 'Client reported hot reload failure.',
1221+
);
12181222
}
12191223
}
12201224

dwds/web/client.dart

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,10 @@ Future<void> handleWebSocketHotReloadRequest(
387387
jsonEncode(
388388
serializers.serialize(
389389
HotReloadResponse(
390-
(b) => b
391-
..id = requestId
392-
..success = true,
390+
(b) =>
391+
b
392+
..id = requestId
393+
..success = true,
393394
),
394395
),
395396
),
@@ -400,10 +401,11 @@ Future<void> handleWebSocketHotReloadRequest(
400401
jsonEncode(
401402
serializers.serialize(
402403
HotReloadResponse(
403-
(b) => b
404-
..id = requestId
405-
..success = false
406-
..errorMessage = e.toString(),
404+
(b) =>
405+
b
406+
..id = requestId
407+
..success = false
408+
..errorMessage = e.toString(),
407409
),
408410
),
409411
),

0 commit comments

Comments
 (0)