Future<Null> close()

Closes the underlying connection to the VM service.

Returns a Future that fires once the connection has been closed.

Source

// TODO(yjbanov): cleanup object references
Future<Null> close() async {
  // Don't leak vm_service_client-specific objects, if any
  await _serviceClient.close();
  await _peer.close();
}