removeAllChannels method

Future<List<String>> removeAllChannels()

Implementation

Future<List<String>> removeAllChannels() async {
  final values =
      await Future.wait(channels.map((channel) => channel.unsubscribe()));
  disconnect();
  return values;
}