getClientName method

Future<ClientName> getClientName()

The getClientName RPC is used to retrieve the name associated with the currently connected VM service client.

If no name was previously set through the setClientName RPC, a default name will be returned.

Implementation

Future<ClientName> getClientName() async {
  // No version check needed, present since v1.0 of the protocol.
  return _callHelper<ClientName>(
    'getClientName',
  );
}