param method
inherited
This method adds key and value to an Entry.
key
The key as string which needs to be added to the Query
value
The value as string which needs to be added to the Query
Example:
var stack = contentstack.Stack( "apiKey", "deliveryToken", "environment");
final query = stack.contentType("contentTypeUid").entry().query();
query.param('key', 'value');
Implementation
void param(String key, String value) {
if (key != null && value != null && key.isNotEmpty && value.isNotEmpty) {
queryParameter[key] = value.toString();
}
}