removeHeader method

void removeHeader(
  1. String key
)

Remove header key key custom header key

Example:

final stack = contentstack.Stack('apiKey','deliveryToken','environment');
final query = stack.contentType('content_type_uid').entry().query();
query.removeHeader('key');

Implementation

void removeHeader(String key) {
  if (_client.stackHeaders.containsKey(key)) {
    _client.stackHeaders.remove(key);
  }
}