close method

Future<void> close ()

Closes the underlying connection to the VM service.

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

Implementation

Future<void> close() async {
  // Don't leak vm_service_client-specific objects, if any
  await serviceClient.close();
  await _peer.close();
}