createNotification method

Future<String> createNotification({
  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. DateTime? scheduledTime,
  11. String? timezone,
})

Create notification (first step)

Implementation

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