TaskHandler class abstract

A class that implements a task handler.

Constructors

TaskHandler()

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
onDestroy(DateTime timestamp) Future<void>
Called when the task is destroyed.
onNotificationButtonPressed(String id) → void
Called when the notification button is pressed.
onNotificationDismissed() → void
Called when the notification itself is dismissed.
onNotificationPressed() → void
Called when the notification itself is pressed.
onReceiveData(Object data) → void
Called when data is sent using FlutterForegroundTask.sendDataToTask.
onRepeatEvent(DateTime timestamp) → void
Called by eventAction in ForegroundTaskOptions.
onStart(DateTime timestamp, TaskStarter starter) Future<void>
Called when the task is started.
toString() String
A string representation of this object.
inherited

Operators

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