JetNotifications class

Jet Notifications - A comprehensive local notifications system

Constructors

JetNotifications.new({String title = "", String body = ""})

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

addActions(List<AndroidNotificationAction> actions) JetNotifications
Add actions to the push notification
addAdditionalFlags(List<int> additionalFlags) JetNotifications
Add additional flags to the push notification
addAttachment(String url, String fileName, {bool? showThumbnail}) JetNotifications
Add an attachment to the push notification
addAudioAttributesUsage(AudioAttributesUsage audioAttributesUsage) JetNotifications
Add audio attributes usage to the push notification
addAutoCancel(bool autoCancel) JetNotifications
Add auto cancel to the push notification
addBadgeNumber(int badgeNumber) JetNotifications
Add the badge number to the push notification
addCategoryIdentifier(String categoryIdentifier) JetNotifications
Add category identifier to the push notification
addChannelAction(AndroidNotificationChannelAction channelAction) JetNotifications
Add channel action to the push notification
addChannelDescription(String channelDescription) JetNotifications
Add channel description to the push notification
addChannelId(String channelId) JetNotifications
Add channel Id to the push notification
addChannelName(String channelName) JetNotifications
Add channel name to the push notification
addChannelShowBadge(bool channelShowBadge) JetNotifications
Add channel show badge to the push notification
addChronometerCountDown(bool chronometerCountDown) JetNotifications
Add chronometer count down to the push notification
addColor(Color color) JetNotifications
Add color to the push notification
addColorized(bool colorized) JetNotifications
Add colorized to the push notification
addEnableLights(bool enableLights) JetNotifications
Add enable lights to the push notification
addEnableVibration(bool enableVibration) JetNotifications
Add enable vibration to the push notification
addFullScreenIntent(bool fullScreenIntent) JetNotifications
Add full screen intent to the push notification
addGroupAlertBehavior(GroupAlertBehavior groupAlertBehavior) JetNotifications
Add group alert behavior to the push notification
addGroupKey(String groupKey) JetNotifications
Add group key to the push notification
addIcon(String icon) JetNotifications
Add icon to the push notification
addId(int id) JetNotifications
Add an id to the push notification
addImportance(Importance importance) JetNotifications
Add importance to the push notification
addIndeterminate(bool indeterminate) JetNotifications
Add indeterminate to the push notification
addInterruptionLevel(InterruptionLevel interruptionLevel) JetNotifications
Add interruption level to the push notification
addLargeIcon(String largeIcon) JetNotifications
Add large icon to the push notification
addLedColor(Color ledColor) JetNotifications
Add led color to the push notification
addLedOffMs(int ledOffMs) JetNotifications
Add led off ms to the push notification
addLedOnMs(int ledOnMs) JetNotifications
Add led on ms to the push notification
addMaxProgress(int maxProgress) JetNotifications
Add max progress to the push notification
addOngoing(bool ongoing) JetNotifications
Add ongoing to the push notification
addOnlyAlertOnce(bool onlyAlertOnce) JetNotifications
Add only alert once to the push notification
addPayload(String payload) JetNotifications
Add a payload to the push notification
addPlaySound(bool playSound) JetNotifications
Add play sound to the push notification
addPresentAlert(bool presentAlert) JetNotifications
Add present alert to the push notification
addPresentBadge(bool presentBadge) JetNotifications
Add present badge to the push notification
addPresentBanner(bool presentBanner) JetNotifications
Add present banner to the push notification
addPresentList(bool presentList) JetNotifications
Add present list to the push notification
addPresentSound(bool presentSound) JetNotifications
Add present sound to the push notification
addPriority(Priority priority) JetNotifications
Add priority to the push notification
addProgress(int progress) JetNotifications
Add progress to the push notification
addSetAsGroupSummary(bool setAsGroupSummary) JetNotifications
Add set as group summary to the push notification
addShortcutId(String shortcutId) JetNotifications
Add shortcut id to the push notification
addShowProgress(bool showProgress) JetNotifications
Add show progress to the push notification
addShowWhen(bool showWhen) JetNotifications
Add show when to the push notification
addSilent(bool silent) JetNotifications
Add silent to the push notification
addSound(String sound) JetNotifications
Add a sound to the push notification
addSubtitle(String subtitle) JetNotifications
Add a subtitle to the push notification
addTag(String tag) JetNotifications
Add tag to the push notification
addThreadIdentifier(String threadIdentifier) JetNotifications
Add thread identifier to the push notification
addTicker(String ticker) JetNotifications
Add ticker to the push notification
addTimeoutAfter(int timeoutAfter) JetNotifications
Add timeout after to the push notification
addUsesChronometer(bool usesChronometer) JetNotifications
Add uses chronometer to the push notification
addVibrationPattern(List<int> vibrationPattern) JetNotifications
Add vibration pattern to the push notification
addVisibility(NotificationVisibility visibility) JetNotifications
Add visibility to the push notification
addWhen(int when) JetNotifications
Add when to the push notification
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send({DateTime? at, AndroidScheduleMode? androidScheduleMode}) Future<void>
Send the push notification
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

cancelAllNotifications() Future<void>
Cancel all notifications
cancelNotification(int id, {String? tag}) Future<void>
Cancel a notification
clearBadgeCount() Future<void>
Clear badge count
initialize() Future<bool>
Initialize the local notifications plugin
requestPermissions({bool alert = true, bool badge = true, bool sound = true, bool provisional = false, bool critical = false, bool vibrate = true, bool enableLights = true, String channelId = "default_notification_channel_id", String channelName = "Default Notification Channel", String? description, String? groupId, Importance? importance, List<int>? vibratePattern, Color? ledColor, AudioAttributesUsage? audioAttributesUsage}) Future<void>
Request permissions
sendNotification({required String title, required String body, String? payload, DateTime? at, int? id, String? subtitle, int? badgeNumber, String? sound, String? channelId, String? channelName, String? channelDescription, Importance? importance, Priority? priority, String? ticker, String? icon, bool? playSound, bool? enableVibration, List<int>? vibrationPattern, String? groupKey, bool? setAsGroupSummary, GroupAlertBehavior? groupAlertBehavior, bool? autoCancel, bool? ongoing, bool? silent, Color? color, String? largeIcon, bool? onlyAlertOnce, bool? showWhen, int? when, bool? usesChronometer, bool? chronometerCountDown, bool? channelShowBadge, bool? showProgress, int? maxProgress, int? progress, bool? indeterminate, AndroidNotificationChannelAction? channelAction, bool? enableLights, Color? ledColor, int? ledOnMs, int? ledOffMs, NotificationVisibility? visibility, int? timeoutAfter, bool? fullScreenIntent, String? shortcutId, List<int>? additionalFlags, String? tag, List<AndroidNotificationAction>? actions, bool? colorized, AudioAttributesUsage? audioAttributesUsage, bool? presentList, bool? presentAlert, bool? presentBadge, bool? presentSound, bool? presentBanner, String? threadIdentifier, String? categoryIdentifier, InterruptionLevel? interruptionLevel, AndroidScheduleMode? androidScheduleMode}) Future<void>
Send a notification Example: