addInterceptor method
Install a client interceptor: fn(path, metadata) runs before every call (in install order). It may mutate the metadata map in place (or return a replacement map) or throw a StatusException to reject the call before any frame is sent. Mirrors the server interceptor shape.
Implementation
void addInterceptor(
FutureOr<Map<String, String>?> Function(String, Map<String, String>)
fn) {
_interceptors.add(fn);
}