WorkRequest class abstract
An abstract class representing a work request.
- Implementers
- Annotations
Constructors
-
WorkRequest({Iterable<
String> ? tags, Map<String, dynamic> ? input, Duration? initialDelay, WorkConstraints? constraints, BackoffCriteria? backoffCriteria}) -
Instantiates a WorkRequest with optional tags and input data.
const
Properties
- backoffCriteria → BackoffCriteria?
-
Sets the backoff policy and backoff delay for the work.
final
- constraints → WorkConstraints?
-
Constraints for the work to run.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialDelay → Duration?
-
The duration of initial delay of the work.
final
-
input
→ Map<
String, dynamic> ? -
Input data of the work.
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
-
toJson(
) → Map< String, dynamic> - Serializes this work request into a json object.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited