getTreatments method
Implementation
@override
Future<Map<String, String>> getTreatments(
{required String matchingKey,
required String? bucketingKey,
required List<String> splitNames,
Map<String, dynamic> attributes = const {}}) async {
Map? treatments = await methodChannel.invokeMapMethod(
'getTreatments',
_buildParameters(matchingKey, bucketingKey,
{'splitName': splitNames, 'attributes': attributes}));
return treatments
?.map((key, value) => MapEntry<String, String>(key, value)) ??
{for (var item in splitNames) item: _controlTreatment};
}