vm_service_client 0.2.4+3

  • README.md
  • Installing
  • Versions
  • 97

A client for the Dart VM service.


  • Fix more Dart 2 runtime issues.


  • Fix type issues with Dart 2 runtime.


  • Updates to support Dart 2.0 core library changes (wave 2.2). See issue 31847 for details.


  • Internal changes only.


  • Add VMIsolate.observatoryUrl and VMObjectRef.observatoryUrl getters that provide access to human-friendly relative Observatory URLs for VM service objects.


  • Fix a bug where Isolate.invokeExtension() would fail if the extension method returned a non-Map value.


  • Fix strong-mode errors and warnings.


  • Narrow the dependency on source_span.


  • Fix some documentation comments.


  • Add getSourceReport to VMIsolateRef and VMScriptRef, which return a VMSourceReport for the target isolate or just the target script respectively.


  • VMScriptToken.offset is deprecated. This never returned the documented value in the first place, and in practice determining that value isn't possible from the information available in the token.

  • VMScript.getLocation() and VMScript.getSpan() now return spans with the correct line, column, and offset numbers.


  • Breaking change: new VMServiceClient() and new VMServiceClient.withoutJson() now take a StreamChannel rather than a Stream/Sink pair.

  • Breaking change: the static asynchronous factory VMServiceClient.connect() is now a synchronous constructor, new VMServiceClient.connect().


  • On VM service versions 3.4 and greater, VMIsolate.pauseEvent now returns an instance of VMNoneEvent before the isolate is runnable.


  • Drop the dependency on the crypto package.


  • Add VMIsolateRef.onExtensionEvent, which emits events posted by VM service extensions using postEvent in dart:developer.

  • Add VMIsolateRef.selectExtensionEvents(), which selects events with specific kinds posted by VM service extensions using postEvent in dart:developer.

  • Add VMIsolateRef.onExtensionAdded, which emits an event when a VM service extension registers a new RPC.

  • Add VMIsolateRef.waitForExtension(), which returns when a given extension RPC is available.

  • Add VMIsolateRef.invokeExtension(), which invokes VM service extension RPCs registered using registerExtension in dart:developer.

  • Add VMIsolate.extensionRpcs, which returns the extension RPCs registered in a given isolate.


  • Fix a bug where VMPauseEvent.time would always be reported as null or crash.


  • Fix support for VM service protocol 1.0 events.


  • Initial version.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  vm_service_client: "^0.2.4+3"

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

      import 'package:vm_service_client/vm_service_client.dart';
Version Uploaded Documentation Archive
0.2.4+3 May 30, 2018 Go to the documentation of vm_service_client 0.2.4+3 Download vm_service_client 0.2.4+3 archive
0.2.4+1 Feb 1, 2018 Go to the documentation of vm_service_client 0.2.4+1 Download vm_service_client 0.2.4+1 archive
0.2.4 Jan 16, 2018 Go to the documentation of vm_service_client 0.2.4 Download vm_service_client 0.2.4 archive
0.2.3 Jan 4, 2017 Go to the documentation of vm_service_client 0.2.3 Download vm_service_client 0.2.3 archive
0.2.2+4 Nov 18, 2016 Go to the documentation of vm_service_client 0.2.2+4 Download vm_service_client 0.2.2+4 archive
0.2.2+3 Nov 17, 2016 Go to the documentation of vm_service_client 0.2.2+3 Download vm_service_client 0.2.2+3 archive
0.2.2+2 Jun 22, 2016 Go to the documentation of vm_service_client 0.2.2+2 Download vm_service_client 0.2.2+2 archive
0.2.2+1 May 20, 2016 Go to the documentation of vm_service_client 0.2.2+1 Download vm_service_client 0.2.2+1 archive
0.2.2 May 20, 2016 Go to the documentation of vm_service_client 0.2.2 Download vm_service_client 0.2.2 archive
0.2.1 May 3, 2016 Go to the documentation of vm_service_client 0.2.1 Download vm_service_client 0.2.1 archive

All 16 versions...


We analyzed this package on Jun 19, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3


Describes how popular the package is relative to other packages. [more]
95 / 100
Code health derived from static analysis. [more]
99 / 100
Reflects how tidy and up-to-date the package is. [more]
99 / 100
Overall score:
Weighted score of the above. [more]
Learn more about scoring.


Detected platforms: Flutter, other

Primary library: package:vm_service_client/vm_service_client.dart with components: io, isolate.


  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 33 hints.

    Run dartfmt to format lib/src/breakpoint.dart.

    Run dartfmt to format lib/src/class.dart.

    Similar analysis of the following files failed:

    • lib/src/code.dart (hint)
    • lib/src/context.dart (hint)
    • lib/src/error.dart (hint)
    • lib/src/field.dart (hint)
    • lib/src/flag.dart (hint)
    • lib/src/frame.dart (hint)
    • lib/src/function.dart (hint)
    • lib/src/instance.dart (hint)
    • lib/src/isolate.dart (hint)
    • lib/src/library.dart (hint)
    • lib/src/pause_event.dart (hint)
    • lib/src/scope.dart (hint)
    • lib/src/script.dart (hint)
    • lib/src/sentinel.dart (hint)
    • lib/src/source_report.dart (hint)
    • lib/src/stack.dart (hint)
    • lib/src/stream_manager.dart (hint)
    • lib/src/type_arguments.dart (hint)
    • lib/src/unresolved_source_location.dart (hint)
    • lib/src/utils.dart (hint)
    • lib/src/vm.dart (hint)
    • lib/vm_service_client.dart (hint)
  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use vm_service_client.dart.

  • Use analysis_options.yaml.

    Rename old .analysis_options file to analysis_options.yaml.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.20.0 <2.0.0
async >=1.7.0 <3.0.0 2.0.7
collection ^1.5.0 1.14.10
json_rpc_2 ^2.0.0 2.0.8
pub_semver ^1.0.0 1.4.1
source_span ^1.4.0 1.4.0
stack_trace ^1.5.0 1.9.2
stream_channel ^1.1.0 1.6.7+1
web_socket_channel ^1.0.0 1.0.8
Transitive dependencies
charcode 1.1.1
convert 2.0.1
crypto 2.0.5
path 1.6.1
typed_data 1.1.5
Dev dependencies
test ^0.12.22