WorkIntent class
Describes a work request.
The name WorkIntent
is chosen to avoid conflict with the term WorkRequest
on the Android platform.
- Annotations
Constructors
-
WorkIntent({required String identifier, Iterable<
String> ? tags, Map<String, dynamic> ? input, Duration? initialDelay, WorkConstraints? constraints, bool? isProcessingTask, Duration? repeatInterval, Duration? flexInterval}) -
Instantiates a WorkIntent with an identifier.
const
Properties
- constraints → WorkConstraints?
-
Constraints for the work to run.
final
- flexInterval → Duration?
-
Android only. The duration for which the work repeats from the end of the repeatInterval.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- identifier → String
-
The identifier of the work.
final
- initialDelay → Duration?
-
The duration of initial delay of the work.
final
-
input
→ Map<
String, dynamic> ? -
Input data of the work.
final
- isProcessingTask → bool?
-
iOS only, if
true
, requests to schedule aBGProcessingTaskRequest
, otherwise defaults toBGAppRefreshTaskRequest
.final - repeatInterval → Duration?
-
Android only. The repeat interval of a periodic work request.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
Tags for grouping work.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited