ForegroundTaskEventAction class

A class that defines the action of onRepeatEvent in TaskHandler.

Constructors

ForegroundTaskEventAction.nothing()
Not use onRepeatEvent callback.
factory
ForegroundTaskEventAction.once()
Call onRepeatEvent only once.
factory
ForegroundTaskEventAction.repeat(int interval)
Call onRepeatEvent at milliseconds interval.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
interval int?
The interval(in milliseconds) at which onRepeatEvent is invoked.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ForegroundTaskEventType
The type for ForegroundTaskEventAction.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns the data fields of ForegroundTaskEventAction in JSON format.
toString() String
A string representation of this object.
inherited

Operators

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