createAndSendNotification method
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,
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,
);
}