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