onEvent method

  1. @override
void onEvent(
  1. RawEvent event
)
override

Executed every time an event is tracked by the client @param event triggered event

Implementation

@override
onEvent(RawEvent event) {
  _count += 1;
  if (_count >= _flushAt) {
    shouldFlush = true;
  }
}