Skip to content

Commit fb5057b

Browse files
committed
updated variable to be type
1 parent 956c323 commit fb5057b

File tree

3 files changed

+5
-14
lines changed

3 files changed

+5
-14
lines changed

dwds/lib/src/dwds_vm_client.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ class ChromeDwdsVmClient implements DwdsVmClient {
8585
DwdsStats dwdsStats,
8686
Uri? ddsUri,
8787
) async {
88-
final chromeProxyService =
89-
debugService.chromeProxyService as ChromeProxyService;
88+
final chromeProxyService = debugService.chromeProxyService;
9089
final responseController = StreamController<VmResponse>();
9190
final responseSink = responseController.sink;
9291
// Response stream must be a broadcast stream so that it can have multiple

dwds/lib/src/services/app_debug_services.dart

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
import 'package:dwds/src/dwds_vm_client.dart';
66
import 'package:dwds/src/events.dart';
7-
import 'package:dwds/src/services/chrome_proxy_service.dart'
8-
show ChromeProxyService;
97
import 'package:dwds/src/services/debug_service.dart';
108
import 'package:dwds/src/services/proxy_service.dart';
119

@@ -56,8 +54,7 @@ class ChromeAppDebugServices implements AppDebugServices {
5654
set connectedInstanceId(String? id) => _connectedInstanceId = id;
5755

5856
@override
59-
ProxyService get proxyService =>
60-
debugService.chromeProxyService as ChromeProxyService;
57+
ProxyService get proxyService => debugService.chromeProxyService;
6158

6259
@override
6360
Future<void> close() =>
@@ -69,7 +66,8 @@ class WebSocketAppDebugServices implements AppDebugServices {
6966
final WebSocketDebugService _debugService;
7067
final WebSocketDwdsVmClient _dwdsVmClient;
7168
Future<void>? _closed;
72-
String? _connectedInstanceId;
69+
@override
70+
String? connectedInstanceId;
7371

7472
WebSocketAppDebugServices(this._debugService, this._dwdsVmClient);
7573

@@ -79,12 +77,6 @@ class WebSocketAppDebugServices implements AppDebugServices {
7977
@override
8078
DwdsVmClient get dwdsVmClient => _dwdsVmClient;
8179

82-
@override
83-
String? get connectedInstanceId => _connectedInstanceId;
84-
85-
@override
86-
set connectedInstanceId(String? id) => _connectedInstanceId = id;
87-
8880
// WebSocket-only service - Chrome/DDS features not available
8981
@override
9082
DwdsStats? get dwdsStats => null;

dwds/lib/src/services/debug_service.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ abstract class DebugService {
143143
class ChromeDebugService implements DebugService {
144144
static String? _ddsUri;
145145

146-
final VmServiceInterface chromeProxyService;
146+
final ChromeProxyService chromeProxyService;
147147
@override
148148
final String hostname;
149149
@override

0 commit comments

Comments
 (0)