getAvailableChannels static method

Future<List<InviteChannel>> getAvailableChannels()

Get the list of available invite channels. Contains only channels enabled on the Dashboard and available on the device.

Implementation

static Future<List<InviteChannel>> getAvailableChannels() {
  return NativeBridge.async('Invites.getAvailableChannels', '').then(
      (value) => (jsonDecode(value) as List)
          .map((e) => InviteChannel.fromJSON(e))
          .toList());
}