invokeEvent method

Future<bool?> invokeEvent(
  1. String? eventName
)

You can log custom user events throughout your application. They can later be used in Survicate panel to trigger your surveys. Events trigger surveys instantly after occurring in your app.

eventName the name of the event to be logged

Implementation

Future<bool?> invokeEvent(String? eventName) async {
  if (eventName == null || eventName.isEmpty) {
    return false;
  }

  return await _channel.invokeMethod('invokeEvent', <String, dynamic>{
    'eventName': eventName,
  });
}