NotificationTemplateBuilder class
Builder class for creating notification templates.
Constructors
- NotificationTemplateBuilder.new()
-
Creates a notification template builder.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createBasicNotification(
{required String id, required String title, required String body, Map< String, dynamic> ? data, String? imageUrl, NotificationImportance importance = NotificationImportance.defaultImportance, NotificationPriority priority = NotificationPriority.defaultPriority}) → NotificationPayload - Creates a basic notification template.
-
createCommonActions(
{bool includeReply = false, bool includeMarkAsRead = false, bool includeSnooze = false, bool includeComplete = false, bool includeView = false}) → List< NotificationAction> - Creates common action buttons for notifications.
-
createCriticalAlertNotification(
{required String id, required String title, required String body, Map< String, dynamic> ? data, String? sound, List<int> ? vibrationPattern}) → NotificationPayload - Creates a critical alert notification template.
-
createGroupedNotification(
{required String id, required String title, required String body, required String groupKey, String? summaryText, Map< String, dynamic> ? data}) → NotificationPayload - Creates a grouped notification template.
-
createInteractiveNotification(
{required String id, required String title, required String body, required List< NotificationAction> actions, Map<String, dynamic> ? data, String? imageUrl, NotificationImportance importance = NotificationImportance.high}) → NotificationPayload - Creates an interactive notification with action buttons.
-
createMessageNotification(
{required String id, required String senderName, required String message, String? senderAvatar, String? conversationId, String? threadIdentifier, Map< String, dynamic> ? data}) → NotificationPayload - Creates a message notification template for chat applications.
-
createProgressNotification(
{required String id, required String title, required String body, int? progress, int? maxProgress, bool indeterminate = false, Map< String, dynamic> ? data}) → NotificationPayload - Creates a progress notification template.
-
createPromotionalNotification(
{required String id, required String title, required String body, String? imageUrl, String? ctaText, String? ctaUrl, Map< String, dynamic> ? data}) → NotificationPayload - Creates a promotional notification template.
-
createReminderNotification(
{required String id, required String title, required String body, DateTime? scheduledDateTime, RepeatInterval? repeatInterval, Map< String, dynamic> ? data}) → NotificationPayload - Creates a reminder notification template.
-
createRichMediaNotification(
{required String id, required String title, required String body, String? imageUrl, String? bigPicture, String? largeIcon, Map< String, dynamic> ? data, NotificationImportance importance = NotificationImportance.high}) → NotificationPayload - Creates a rich media notification template with image support.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited