except method

void except(
  1. List<String> fieldUid
)
inherited

Specifies list of field uids that would be excluded from the response. fieldUid field uid which get excluded from the response. EntryQueryable object, so you can chain this call.

Example:

final stack = contentstack.Stack('apiKey','deliveryToken','environment');
final entry = stack.contentType("contentTypeUid").entry("entryUid");
fieldUid is String type of List
entry.except(fieldUid);

Implementation

void except(List<String> fieldUid) {
  if (fieldUid != null && fieldUid.isNotEmpty) {
    final List referenceArray = [];
    for (final item in fieldUid) {
      referenceArray.add(item);
    }
    parameter['except[BASE][]'] = referenceArray.toString();
  }
}