newInstance static method
Future<String?>
newInstance(
{ - required String clientId,
- required ClientConfigurationType type,
- bool? httpRedirectCaching,
- bool? keepAliveMeasurement,
- bool? secureTransmission,
- Map<String, String>? persistentLabels,
- Map<String, String>? startLabels,
- Map<String, String?>? other,
})
Implementation
static Future<String?> newInstance(
{required String clientId,
required ClientConfigurationType type,
bool? httpRedirectCaching,
bool? keepAliveMeasurement,
bool? secureTransmission,
Map<String, String>? persistentLabels,
Map<String, String>? startLabels,
Map<String, String?>? other}) async {
Map<String, dynamic> values = <String, dynamic>{
Args.type: type.name,
'clientId': clientId,
'httpRedirectCaching': httpRedirectCaching,
"keepAliveMeasurement": keepAliveMeasurement,
"secureTransmission": secureTransmission,
"persistentLabels": persistentLabels,
"startLabels": startLabels
};
if (other != null) {
values.addAll(other);
}
return await _methodChannel.invokeMethod<String?>('newInstance', values);
}