newEventByName static method

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

Implementation

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