getTreatment method

  1. @override
Future<String> getTreatment({
  1. required String matchingKey,
  2. required String? bucketingKey,
  3. required String splitName,
  4. Map<String, dynamic> attributes = const {},
})

Implementation

@override
Future<String> getTreatment(
    {required String matchingKey,
    required String? bucketingKey,
    required String splitName,
    Map<String, dynamic> attributes = const {}}) async {
  return await methodChannel.invokeMethod(
          'getTreatment',
          _buildParameters(matchingKey, bucketingKey,
              {'splitName': splitName, 'attributes': attributes})) ??
      _controlTreatment;
}