getAttributionInfo method
Implementation
Future<Map<String, dynamic>?> getAttributionInfo() async {
try {
final dynamic response = await _channel.invokeMethod('getAttributionInfo');
if (response is Map) {
final Map<String, dynamic> stringKeyedMap = response.map((key, value) {
return MapEntry(key.toString(), value);
});
return stringKeyedMap;
}
throw Exception("Received invalid type for attribution info.");
} on PlatformException catch (e) {
print("Failed to get attribution info: '${e.message}'.");
return null;
} catch (e) {
print("An error occurred: $e");
return null;
}
}