newEvent static method

void newEvent(
  1. String slug, [
  2. Map<String, Object> attributes = const {}
])

Implementation

static void newEvent(String slug, [Map<String, Object> attributes = const {}]) {
  if (!isWeb) {
    _channel.invokeMethod('newEvent', {
      'slug': slug,
      'attributes': attributes,
    });
  } else {
    MetrixWeb.newEvent(slug, attributes);
  }
}