clear method

  1. @override
void clear({
  1. bool keepImplyContentTypeInterceptor = true,
})
override

The default ImplyContentTypeInterceptor will be removed only if keepImplyContentTypeInterceptor is false.

Implementation

@override
void clear({bool keepImplyContentTypeInterceptor = true}) {
  if (keepImplyContentTypeInterceptor) {
    _list.removeWhere((e) => e is! ImplyContentTypeInterceptor);
  } else {
    super.clear();
  }
}