Allow sendRaw to send Map<String, dynamic> (#161)
diff --git a/lib/src/usage_impl.dart b/lib/src/usage_impl.dart
index 3e850ec..4d89968 100644
--- a/lib/src/usage_impl.dart
+++ b/lib/src/usage_impl.dart
@@ -243,7 +243,7 @@
///
/// Valid values for [hitType] are: 'pageview', 'screenview', 'event',
/// 'transaction', 'item', 'social', 'exception', and 'timing'.
- Future sendRaw(String hitType, Map<String, String> args) {
+ Future sendRaw(String hitType, Map<String, dynamic> args) {
return _enqueuePayload(hitType, args);
}
@@ -252,7 +252,10 @@
///
/// Valid values for [hitType] are: 'pageview', 'screenview', 'event',
/// 'transaction', 'item', 'social', 'exception', and 'timing'.
- Future<void> _enqueuePayload(String hitType, Map<String, String> args) async {
+ Future<void> _enqueuePayload(
+ String hitType,
+ Map<String, dynamic> args,
+ ) async {
if (!enabled) return;
// TODO(sigurdm): Really all the 'send' methods should not return Futures
// there is not much point in waiting for it. Only [waitForLastPing].