query method

void query(
  1. String key,
  2. String value
)
inherited

Add a custom query against specified key. key key for the query value value for 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 query(String key, String value) {
  if (key != null && value != null && key.isNotEmpty && value.isNotEmpty) {
    parameter[key] = value.toString();
  }
}