Future<void> trackEvent(String type, [Map<String, Object>? data]) async { await _channel.invokeMethod('trackEvent', {"type": type, "data": data}); }