setName method

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

Sets the name of the channel.

await channel.setName('new-name');

Implementation

Future<void> setName(String name, {String? reason}) =>
    _methods.setName(name, reason);