reportEvent method Null safety

Future<void> reportEvent(
  1. {required String name,
  2. EventOptions? options}
)

Sends a Custom Event beacon to Instana

Implementation

static Future<void> reportEvent(
    {required String name, EventOptions? options}) async {
  await _channel.invokeMethod('reportEvent', <String, dynamic>{
    'eventName': name,
    'startTime': options?.startTime?.toDouble(),
    'duration': options?.duration?.toDouble(),
    'viewName': options?.viewName,
    'meta': options?.meta,
    'backendTracingID': options?.backendTracingID
  });
}