find<T, K> method

Future<T> find<T, K>(
  1. {Map<String, String> queryParams}
)

This call returns comprehensive information of all the content types available in a particular stack in your account.

Example:

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

Implementation

Future<T> find<T, K>({Map<String, String> queryParams}) async {
  if (queryParams != null && queryParams.isNotEmpty) {
    queryParameter.addAll(queryParams);
  }
  final uri = Uri.https(_client.stack.endpoint, _urlPath, queryParameter);
  return _client.sendRequest<T, K>(uri);
}