NoOpNotificationController class
A no-operation notification controller that does nothing.
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
pendingNotificationRequestsCount
→ Future<
int> -
The number of pending notifications.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancelNotification(
int id) → Future< void> -
Cancel (i.e., remove) the notification with
id
.override -
cancelTaskNotification(
UserTask task) → Future< void> -
Cancel (i.e., remove) the notification for the
task
.override -
createNotification(
{int? id, required String title, String? body}) → Future< int> -
Create an immediate notification with
id
,title
, andbody
. If theid
is not specified, a random id will be generated.override -
createTaskNotification(
UserTask task) → Future< void> -
Create an immediate notification for a
task
.override -
initialize(
) → Future< void> -
Initialize and set up the notification controller.
Also tries to get permissions to send notifications.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
scheduleNotification(
{int? id, required String title, String? body, required DateTime schedule}) → Future< int> -
Schedule a notification with
id
,title
, andbody
at theschedule
time. If theid
is not specified, a random id will be generated.override -
scheduleRecurrentNotifications(
{int? id, required String title, String? body, required RecurrentScheduledTrigger schedule}) → Future< int> -
Schedule recurrent notifications with
id
,title
, andbody
at theschedule
time.override -
scheduleTaskNotification(
UserTask task) → Future< void> -
Schedule a notification for a
task
at thetask.triggerTime
.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited