sendEvent method

Future sendEvent(
  1. String action
)

Send information about client events.

Ask the analysis server to include the fact that an action was performed in the client as part of the analytics data being sent. The data will only be included if the sending of analytics data is enabled at the time the request is processed. The action that was performed is indicated by the value of the action field.

The value of the action field should not include the identity of the client. The analytics data sent by server will include the client id passed in using the --client-id command-line argument. The request will be ignored if the client id was not provided when server was started.

Implementation

Future sendEvent(String action) =>
    _call('analytics.sendEvent', {'action': action});