getChannels static method

Future<bool> getChannels(
  1. TPChannel? lastChannel,
  2. dynamic successCallback(
    1. List<TPChannel>,
    2. bool
    ), {
  3. dynamic errorCallback(
    1. int? errorCode,
    2. String? errorMessage
    )?,
})

Implementation

static Future<bool> getChannels(
    TPChannel? lastChannel,
    Function(List<TPChannel>, bool) successCallback,
    {
      Function(int? errorCode, String? errorMessage)? errorCallback
    }) async
{
  final params = TPChannelQueryParams();
  params.lastChannel = lastChannel;
  return _filterChannels(params,
      false,
      successCallback,
      errorCallback: errorCallback);
}