getAttributionInfo method
Implementation
Future<Map<String, dynamic>?> getAttributionInfo() async {
try {
final dynamic response = await _channel.invokeMethod('getAttributionInfo');
if (response is Map<String, dynamic>) {
return response;
}
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;
}
}