createAndSendNotification method

Future<String?> createAndSendNotification({
  1. required String title,
  2. required String message,
  3. String? image,
  4. List<NotificationAttachment>? attachments,
  5. List<NotificationAction>? actions,
  6. String? deepLink,
  7. NotificationStyle? style,
  8. Map<String, dynamic>? data,
  9. bool? isTemplate,
  10. List<String>? consumerIds,
  11. List<String>? deviceTokens,
  12. List<String>? tagIds,
  13. String? osType,
  14. String? timezone,
  15. DateTime? scheduledTime,
  16. Map<String, dynamic>? variables,
})

Create and send notification in one step

Implementation

Future<String?> createAndSendNotification({
  required String title,
  required String message,
  String? image,
  List<NotificationAttachment>? attachments,
  List<NotificationAction>? actions,
  String? deepLink,
  NotificationStyle? style,
  Map<String, dynamic>? data,
  bool? isTemplate,
  List<String>? consumerIds,
  List<String>? deviceTokens,
  List<String>? tagIds,
  String? osType,
  String? timezone,
  DateTime? scheduledTime,
  Map<String, dynamic>? variables,
}) async {
  return await _platform.createAndSendNotification(
    title: title,
    message: message,
    image: image,
    attachments: attachments,
    actions: actions,
    deepLink: deepLink,
    style: style,
    data: data,
    isTemplate: isTemplate,
    consumerIds: consumerIds,
    deviceTokens: deviceTokens,
    tagIds: tagIds,
    osType: osType,
    timezone: timezone,
    scheduledTime: scheduledTime,
    variables: variables,
  );
}