addParam method
This method adds key and value to an Entry.
key
The key as string which needs to be added to an Entry
value
The value as string which needs to be added to an Entry
Query object, so you can chain this call.
Example:
final stack = contentstack.Stack('apiKey, 'deliveryKey, 'environment);
final query = stack.contentType('contentTypeUid').entry().query();
entry.addParam(key, value);
Implementation
void addParam(String key, String value) {
if (key != null && value != null && key.isNotEmpty && value.isNotEmpty) {
queryParameter[key] = value.toString();
}
}