addParams method
- Map parameters
inherited
This method adds key and value to an Entry.
parameters
The key and value pair that will be added to the Query
Example:
var stack = contentstack.Stack( "apiKey", "deliveryToken", "environment");
var query = stack.contentType("contentTypeUid").entry().query();
query.addParam({key: value, key1: value2});
Implementation
void addParams(Map parameters) {
if (parameters != null && parameters.isNotEmpty) {
parameters.forEach((key, value) {
queryParameter[key] = value;
});
}
}