postNotification<T> method

Future<T?> postNotification<T>(
  1. ChannelNotificationEvent event
)

Implementation

Future<T?> postNotification<T>(ChannelNotificationEvent event) {
  if (event.module.isEmpty || event.action.isEmpty) return Future.value(null);
  final method = '${ChannelBridge.packageName}'
      '.${event.module}'
      '.${event.action}';
  return ChannelBridge.notificationChannel.invokeMethod(
    method,
    event.arguments,
  );
}