build static method

Future<PartnerConfiguration?> build({
  1. required String partnerId,
  2. bool? httpRedirectCaching,
  3. bool? keepAliveMeasurement,
  4. bool? secureTransmission,
  5. Map<String, String>? persistentLabels,
  6. Map<String, String>? startLabels,
  7. String? externalClientId,
})

Implementation

static Future<PartnerConfiguration?> build(
    {required String partnerId,
    bool? httpRedirectCaching,
    bool? keepAliveMeasurement,
    bool? secureTransmission,
    Map<String, String>? persistentLabels,
    Map<String, String>? startLabels,
    String? externalClientId}) async {
  var refId = await ClientConfiguration.newInstance(
      type: ClientConfigurationType.partnerConfiguration,
      clientId: partnerId,
      httpRedirectCaching: httpRedirectCaching,
      keepAliveMeasurement: keepAliveMeasurement,
      secureTransmission: secureTransmission,
      persistentLabels: persistentLabels,
      startLabels: startLabels,
      other: {"externalClientId": externalClientId});

  if (refId == null) {
    return null;
  }
  return PartnerConfiguration.init(refId);
}