getTreatments method
Implementation
Future<Map<String, String?>> getTreatments(
List<String> keys, Map<String, dynamic> attr) async {
Map<String, dynamic> attributes = {"keys": keys, "attributes": attr};
var data = await _channel.invokeMethod('getTreatments', attributes);
Map<String, String?> result = Map();
for (var key in keys) {
try {
result[key] = data[key];
} catch (e, st) {
print(e);
print(st);
}
}
return result;
}