When tracking analytics events in your code, consider using unawaited from dart:async
.
Why?
Analytics calls should be fire & forget and not interrupt the flow of your code if they fail.
By using unawaited
, you make your intent more explicit.
For more info, read:
Previous | Next |
---|---|
How to use --dart-define-from-file with .env and json files | log function args (dart:developer) |