sendEvent method

  1. @override
Future<void> sendEvent(
  1. EventType type,
  2. String identifier,
  3. Map<Object?, Object?> data
)
override

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}');
  }
}