ClikgateRequestContext class

Internal (used by the Engage features, engage.dart; not part of the app-facing API): what a /v1/sdk/* call needs to act for this installation, from the native core SDK (Clikgate.getRequestContext). A snapshot: get a fresh one per call (the identity token changes with Clikgate.identifyUser).

Annotations

Constructors

ClikgateRequestContext({required String installationId, required String sdkKey, required String environment, required String apiBaseUrl, required String sdkVersion, String? identityToken, String? customerUserId, String? nativeSdkVersion})
const
ClikgateRequestContext.fromMap(Map<String, dynamic> m)
factory

Properties

apiBaseUrl → String
The SDK API base URL (e.g. https://sdk.clikgate.com).
final
customerUserId → String?
The identified user; null when the installation isn't identified.
final
environment → String
production or sandbox.
final
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, String>
The contract's request headers (SDK key, versions, installation id, identity token).
no setter
identityToken → String?
The identity token from the last Clikgate.identifyUser, if any.
final
installationId → String
Clikgate-Installation-Id.
final
nativeSdkVersion → String?
Clikgate-SDK-Native-Version header value (android/1.0.0, ios/1.0.0).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sdkKey → String
Clikgate-SDK-Key.
final
sdkVersion → String
Exact Clikgate-SDK-Version header value (flutter/1.0.0).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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