send method

Future<String> send (String eventName, { Map<String, Object> attributes })

Sends the event named eventName with optional attributes to the server.

Implementation

Future<String> send(String eventName,
        {Map<String, Object> attributes}) async =>
    (await sendByRequest(SendEventRequest(eventName, attributes: attributes)))
        .eventId;