addQuery method

void addQuery(
  1. Map parameters
)
inherited

Add a custom query against specified key. parameters The key and value pair that will be added to the Query

Example:

final stack = contentstack.Stack('apiKey','deliveryToken','environment');
final query = stack.contentType("contentTypeUid").entry().query();
query.addQuery("query_param_key", "query_param_value");

Implementation

void addQuery(Map parameters) {
  if (parameters != null && parameters.isNotEmpty) {
    parameters.forEach((key, value) {
      parameter[key] = value;
    });
  }
}