Api.createAdvanced constructor
*[<Null safety>](https://dart.dev/null-safety)*
Api.createAdvanced(ClientChannel channel, {CallOptions? options, Iterable<ClientInterceptor>? interceptors, String appVersion = ""})
Implementation
factory Api.createAdvanced(
grpc.ClientChannel channel, {
grpc.CallOptions? options,
Iterable<grpc.ClientInterceptor>? interceptors,
String appVersion = "",
}) {
var metadata = _MetadataManager();
options = grpc.CallOptions(
providers: [metadata.provideCallMetadata],
).mergedWith(options);
var client = xmtp.MessageApiClient(
channel,
options: options,
interceptors: interceptors,
);
metadata.appVersion = appVersion;
return Api._(channel, client, metadata);
}