setName method

Future<String> setName(
  1. String newName
)

Call the SDN API to change the name of this room. Returns the event ID of the new m.room.name event.

Implementation

Future<String> setName(String newName) => client.setRoomStateWithKey(
      id,
      EventTypes.RoomName,
      '',
      {'name': newName},
    );