close method

  1. @override
Future<void> close ()
override

Closes the underlying connection to the VM service.

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

Implementation

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