Api class
*[<Null safety>](https://dart.dev/null-safety)*
This is an instance of the xmtp.MessageApiClient with some metadata helpers (e.g. for setting the authorization token).
Constructors
Api.create ({String host = 'dev.xmtp.network', int port = 5556, bool isSecure = true, bool debugLogRequests = kDebugMode, String appVersion = "dev/0.0.0-development"})
factory
Api.createAdvanced (ClientChannel channel, {CallOptions? options, Iterable<ClientInterceptor>? interceptors, String appVersion = ""})
factory
Properties
client → MessageApiClient
final
hashCode → int
The hash code for this object.
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
Methods
clearAuthTokenProvider() void
noSuchMethod(Invocation invocation) dynamic
Invoked when a non-existent method or property is accessed.
inherited
setAuthTokenProvider(FutureOr<String> authTokenProvider()) void
terminate() Future<void>
toString() String
A string representation of this object.
inherited
Operators
operator ==(Object other) bool
The equality operator.
inherited