Api class
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.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearAuthTokenProvider(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent 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