setClientName method

Future<Success> setClientName([
  1. String name = ''
])

The setClientName RPC is used to set a name to be associated with the currently connected VM service client.

If the name parameter is a non-empty string, name will become the new name associated with the client. If name is an empty string, the client's name will be reset to its default name.

Implementation

Future<Success> setClientName([String name = '']) async {
  // No version check needed, present since v1.0 of the protocol.
  return _callHelper<Success>(
    'setClientName',
    args: {
      'name': name,
    },
  );
}