init static method

dynamic init({
  1. String? scheme,
  2. required String host,
  3. int? port,
  4. String? contentType,
  5. String? tokenType,
  6. JsonDecodingOption? jsonDecodingOption,
})

Implementation

static init(
    {String? scheme,
    required String host,
    int? port,
    String? contentType,
    String? tokenType,
    JsonDecodingOption? jsonDecodingOption}) {
  DdxHttpConfig.scheme = scheme ?? "https";
  DdxHttpConfig.host = host;
  DdxHttpConfig.port = port;
  DdxHttpConfig.contentType = contentType ?? DdxHttpConfig.contentType;
  DdxHttpConfig.tokenType = tokenType ?? DdxHttpConfig.tokenType;
  DdxHttpConfig.jsonDecodingOption = jsonDecodingOption ?? DdxHttpConfig.jsonDecodingOption;
}