setName method

Future<void> setName(
  1. String name, {
  2. String? reason,
})

Set the server's name.

await server.setName('New Server Name', reason: 'Testing');

Implementation

Future<void> setName(String name, {String? reason}) async {
  await _serverPart.updateServer(id, {'name': name}, reason);
}