pushEvent function Null safety

void pushEvent(
  1. String event,
  2. {Map<String, dynamic> data = const {}}
)

Implementation

void pushEvent(String event, {Map<String, dynamic> data = const {}}) {
  data = {
    ...data,
    'event': event,
  };
  push(data);
}