newEvent static method

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

Implementation

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