close method Null safety

  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 {
  await _serviceClient.dispose();
  await _serviceClient.onDone;
}