Engine behind UNotification; use UNotification instead.
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
-
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
Static Properties
-
events
→ Stream<
UNotificationEvent> -
Taps, button presses, replies and dismissals. Ones that arrived before anyone listened
(including the tap that launched the app) are delivered first.
no setter
Static Methods
-
active(
) → Future< List< UNotificationInfo> > - Notifications currently shown in the notification centre.
-
cancel(
int id) → Future< void> -
cancelAll(
) → Future< void> -
cancelGroup(
String group) → Future< void> -
channels(
) → Future< List< String> > -
createChannel(
UNotificationChannel channel) → Future< void> -
createChannelGroup(
String id, String name) → Future< void> -
deleteChannel(
String id) → Future< void> -
dispose(
) → Future< void> -
init(
{String? appId, String? appName, String? androidIcon, String? windowsIconPath, bool showInForeground = true}) → Future< void> - Registers with the OS, starts receiving taps and re-arms Dart-side schedules. Idempotent.
-
launchEvent(
) → Future< UNotificationEvent?> - The notification tap that launched the app, if any.
-
occurrence(
DateTime anchor, URepeat repeat, URepeatCalendar calendar, int k) → DateTime -
The
k-th occurrence counted fromanchor; days past a month's end clamp to its last day. -
pending(
) → Future< List< UNotificationInfo> > - Scheduled notifications that have not fired yet.
-
permission(
) → Future< UNotificationPermission> -
requestPermission(
{bool provisional = false, bool critical = false}) → Future< UNotificationPermission> -
Asks for permission.
provisional(iOS) delivers quietly without asking;criticalneeds Apple's entitlement. -
schedule(
UNotificationRequest request, DateTime at, {URepeat repeat = URepeat.none, URepeatCalendar calendar = URepeatCalendar.gregorian, bool exact = true}) → Future< bool> -
Shows
requestatat, optionally repeating. Survives restarts (and reboots on Android). -
setBadge(
int count) → Future< bool> - App icon badge (iOS, macOS Dock, Windows taskbar, Linux launchers, installed PWAs). 0 clears it.
-
show(
UNotificationRequest request) → Future< bool> -
upcoming(
DateTime at, URepeat repeat, URepeatCalendar calendar, int count) → List< DateTime> -
Next fire times after now (at most
count). Every occurrence is computed fromatitself, so "the 31st" stays the 31st (or the month's last day) instead of drifting to the 28th.