initialize static method

Future<Client> initialize(
  1. String appId,
  2. String appSecret,
  3. String apiEndpoint, {
  4. bool enableSDKLogs = false,
})

Initialize an instance of HTTP Client wrapper

Implementation

static Future<Client> initialize(
  String appId,
  String appSecret,
  String apiEndpoint, {
  bool enableSDKLogs = false,
}) async {
  return Future.value(
    Client._internal(
      _httpClient(enableSDKLogs),
      appId,
      Hmac(sha512, convert.base64Url.decode(appSecret)),
      apiEndpoint,
      enableSDKLogs,
    ),
  );
}