KineticSdkConfig constructor
KineticSdkConfig({})
Implementation
KineticSdkConfig(
{required this.index,
required this.endpoint,
required this.environment,
this.commitment,
this.headers,
this.logger}) {
Map<String, String>? defaultHeaders = {
'kinetic-environment': environment,
'kinetic-index': index.toString(),
'kinetic-user-agent': "$name/$version",
};
headers = headers != null ? {...headers!, ...defaultHeaders} : defaultHeaders;
}