getTopicsCount static method

Future<int> getTopicsCount(
  1. TopicsQuery query
)

Get number of topics.

query Query parameter.

Implementation

static Future<int> getTopicsCount(TopicsQuery query) {
  return NativeBridge.async(
          'Communities.getTopicsCount', jsonEncode(query.toJSON()))
      .then((result) => jsonDecode(result)['result']);
}