File tree Expand file tree Collapse file tree 3 files changed +25
-19
lines changed Expand file tree Collapse file tree 3 files changed +25
-19
lines changed Original file line number Diff line number Diff 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);
Original file line number Diff line number Diff 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.
4141class 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
Original file line number Diff line number Diff 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 ),
You can’t perform that action at this time.
0 commit comments