getLabelCount static method

Future<int> getLabelCount(
  1. LabelsQuery query
)

Get number of labels.

query Query parameter.

Implementation

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