PeriodicWorkRequest class
Defines a periodic work request.
- Inheritance
-
- Object
- WorkRequest
- PeriodicWorkRequest
- Annotations
Constructors
-
PeriodicWorkRequest({required Duration repeatInterval, Duration? flexInterval, Iterable<
String> ? tags, Map<String, dynamic> ? input, Duration? initialDelay, WorkConstraints? constraints, BackoffCriteria? backoffCriteria}) -
Creates a PeriodicWorkRequest to run periodically once every repeatInterval period
, with an optional flexInterval.
const
Properties
- backoffCriteria → BackoffCriteria?
-
Sets the backoff policy and backoff delay for the work.
finalinherited
- constraints → WorkConstraints?
-
Constraints for the work to run.
finalinherited
- flexInterval → Duration?
-
The duration for which the work repeats from the end of the repeatInterval.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialDelay → Duration?
-
The duration of initial delay of the work.
finalinherited
-
input
→ Map<
String, dynamic> ? -
Input data of the work.
finalinherited
- repeatInterval → Duration
-
The repeat interval
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
Tags for grouping work.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this work request into a json object.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited