$Client class

Constructors

$Client.new(Uri baseURL, {Map<String, String>? baseHeaders, Client? httpClient, CookieJar? cookieJar, List<DynamiteAuthentication>? authentications})
Creates a new DynamiteClient for untagged requests.
$Client.fromClient(DynamiteClient client)
Creates a new $Client from another client.

Properties

authentications List<DynamiteAuthentication>?
The available authentications for this client.
finalinherited
baseHeaders Map<String, String>?
The base headers added to each request.
finalinherited
baseURL Uri
The base server url used to build the request uri.
finalinherited
cookieJar → CookieJar?
The optional cookie jar to persist the response cookies.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
httpClient → Client
The base http client.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

check() Future<DynamiteResponse<CheckResponseApplicationJson, void>>
Check if the UnifiedPush provider is present.
checkRaw() DynamiteRawResponse<CheckResponseApplicationJson, void>
Check if the UnifiedPush provider is present.
createApp({required String deviceId, required String appName}) Future<DynamiteResponse<CreateAppResponseApplicationJson, void>>
Create an authorization token for a new 3rd party service.
createAppRaw({required String deviceId, required String appName}) DynamiteRawResponse<CreateAppResponseApplicationJson, void>
Create an authorization token for a new 3rd party service.
createDevice({required String deviceName}) Future<DynamiteResponse<CreateDeviceResponseApplicationJson, void>>
Request to create a new deviceId.
createDeviceRaw({required String deviceName}) DynamiteRawResponse<CreateDeviceResponseApplicationJson, void>
Request to create a new deviceId.
deleteApp({required String token}) Future<DynamiteResponse<DeleteAppResponseApplicationJson, void>>
Delete an authorization token.
deleteAppRaw({required String token}) DynamiteRawResponse<DeleteAppResponseApplicationJson, void>
Delete an authorization token.
deleteDevice({required String deviceId}) Future<DynamiteResponse<DeleteDeviceResponseApplicationJson, void>>
Delete a device.
deleteDeviceRaw({required String deviceId}) DynamiteRawResponse<DeleteDeviceResponseApplicationJson, void>
Delete a device.
executeRawRequest(String method, Uri uri, {Map<String, String>? headers, Uint8List? body, Set<int>? validStatuses}) Future<StreamedResponse>
Executes a HTTP request against give full uri.
inherited
executeRequest(String method, String path, {Map<String, String>? headers, Uint8List? body, Set<int>? validStatuses}) Future<StreamedResponse>
Makes a request against a given path.
inherited
gatewayMatrix() Future<DynamiteResponse<GatewayMatrixResponseApplicationJson, void>>
Matrix Gateway.
gatewayMatrixDiscovery() Future<DynamiteResponse<GatewayMatrixDiscoveryResponseApplicationJson, void>>
Matrix Gateway discovery.
gatewayMatrixDiscoveryRaw() DynamiteRawResponse<GatewayMatrixDiscoveryResponseApplicationJson, void>
Matrix Gateway discovery.
gatewayMatrixRaw() DynamiteRawResponse<GatewayMatrixResponseApplicationJson, void>
Matrix Gateway.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
push({required String token}) Future<DynamiteResponse<PushResponseApplicationJson, void>>
Receive notifications from 3rd parties.
pushRaw({required String token}) DynamiteRawResponse<PushResponseApplicationJson, void>
Receive notifications from 3rd parties.
setKeepalive({required int keepalive}) Future<DynamiteResponse<SetKeepaliveResponseApplicationJson, void>>
Set keepalive interval.
setKeepaliveRaw({required int keepalive}) DynamiteRawResponse<SetKeepaliveResponseApplicationJson, void>
Set keepalive interval.
syncDevice({required String deviceId}) Future<DynamiteResponse<SyncDeviceResponseApplicationJson, void>>
Request to get push messages.
syncDeviceRaw({required String deviceId}) DynamiteRawResponse<SyncDeviceResponseApplicationJson, void>
Request to get push messages.
toString() String
A string representation of this object.
inherited
unifiedpushDiscovery({required String token}) Future<DynamiteResponse<UnifiedpushDiscoveryResponseApplicationJson, void>>
Unifiedpush discovery Following specifications.
unifiedpushDiscoveryRaw({required String token}) DynamiteRawResponse<UnifiedpushDiscoveryResponseApplicationJson, void>
Unifiedpush discovery Following specifications.

Operators

operator ==(Object other) bool
The equality operator.
inherited