NotificationService class
Constructors
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
-
cancel(
int id) → Future< void> - Cancel a specific notification by ID.
-
cancelAll(
) → Future< void> - Cancel all scheduled notifications.
-
initialize(
) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestPermission(
) → Future< bool> - Request iOS notification permissions. Returns true if granted.
-
scheduleDailyReminder(
{required int hour, required int minute, required int dueCardCount}) → Future< void> - Schedule the daily study reminder at a specific time.
-
scheduleOverdueWarning(
{required DateTime nextReviewDate, required int thresholdDays}) → Future< void> - Schedule one-shot overdue warning.
-
scheduleStreakAlert(
{required int currentStreak}) → Future< void> - Schedule streak maintenance alert at 8pm daily.
-
showFromPush(
{required String title, required String body, String? route}) → Future< void> - Show an immediate notification from a push payload (foreground display).
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited