except method

Map<String, dynamic> except(
  1. dynamic key
)

Implementation

Map<String, dynamic> except(dynamic key) {
  // A copy: removing from the merged view itself would drop the keys
  // from every later read of this request's input.
  final requestItems = Map<String, dynamic>.of(_all);

  if (key is List<String>) {
    for (String vKey in key) {
      requestItems.removeWhere((iKey, value) => iKey == vKey);
    }
  }

  if (key is String) {
    requestItems.removeWhere((vkey, value) => vkey == key);
  }

  return requestItems;
}