includeCount method

void includeCount()

This method includes the includeCount method facilitate to find the total count of content types available in your stack

Example:

final stack = contentstack.Stack('apiKey','deliveryToken','environment');
final contentTypeQuery = stack.contentType().query()
final response = contentTypeQuery.includeCount().find();
print(response);

Implementation

void includeCount() {
  queryParameter['include_count'] = 'true';
}