sendEvent method
Implementation
@override
Future<void> sendEvent(EventType type, String identifier, Map<Object?, Object?> data) async {
try {
await methodChannel.invokeMethod('sendEvent', {
'data': {
'type': EventType.getByType(type),
'email': identifier,
'data': data
}
});
}
on PlatformException catch(exception) {
log.severe('Exception when displaying the notification: ${exception.message}');
}
}