analyticsEvents method Null safety

Stream<NamiAnalyticsData> analyticsEvents()

Get a stream of NamiAnalyticsData event data whenever Nami platform registers a specific event of any type from NamiAnalyticsActionType.

Implementation

static Stream<NamiAnalyticsData> analyticsEvents() {
  var data = _analyticsEvent
      .receiveBroadcastStream()
      .map((dynamic event) => _handleAnalyticsEvent(event));

  return data;
}