We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3014f48 commit 401dcd2Copy full SHA for 401dcd2
dwds/lib/src/services/debug_service.dart
@@ -40,7 +40,7 @@ abstract class DebugService<T extends ProxyService> {
40
/// The URI pointing to the VM service implementation hosted by the [DebugService].
41
String get uri => _uri.toString();
42
43
- Uri get _uri {
+ Uri get _uri => _cachedUri ??= () {
44
final dds = _dds;
45
if (ddsConfig.enable && dds != null) {
46
return useSse ? dds.sseUri : dds.wsUri;
@@ -58,8 +58,9 @@ abstract class DebugService<T extends ProxyService> {
58
port: _server.port,
59
path: authToken,
60
);
61
- }
+ }();
62
63
+ Uri? _cachedUri;
64
String? _ddsUri;
65
66
late final T proxyService;
0 commit comments