sendEvent method

  1. @override
Future<void> sendEvent({
  1. required String event,
  2. List<YoHeAttribute>? attributes,
})
override

Implementation

@override
Future<void> sendEvent({required String event, List<YoHeAttribute>? attributes}) async {
  return await methodChannel.invokeMethod<void>('sendEvent', {
    'event': event,
    'attributes': attributes?.map((e) => e.toArguments).toList(),
  });
}