fireAndForget method
Implementation
Future<void> fireAndForget(String? url) async {
if (url == null) {
return;
}
try {
final uri = Uri.parse(url);
await http.get(uri).timeout(const Duration(seconds: 3));
Pam.log(['Track sent successfully: $url']);
} catch (e) {
Pam.log(['Track failed: $e']);
}
}