removeInterceptor abstract method

void removeInterceptor(
  1. AdapterInterceptor interceptor
)

Removes an interceptor from the adapter.

Parameters:

  • interceptor: The interceptor to remove

If the interceptor is not found, this method does nothing.

Example:

final authInterceptor = AuthInterceptor();
adapter.addInterceptor(authInterceptor);

// Later, remove it
adapter.removeInterceptor(authInterceptor);

Implementation

void removeInterceptor(AdapterInterceptor interceptor);