RunAtMostEvery class

A RunCondition which reports that a task should run at most every period.

The period is computed at the time of checking if the task should run and starts counting from the last time the task was executed successfully.

Mixed in types
Annotations
  • @sealed

Constructors

RunAtMostEvery(Duration period, [DartleCache? cache])

Properties

cache DartleCache
final
hashCode int
The hash code for this object.
no setterinherited
period Duration
final
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
postRun(TaskResult result) FutureOr<void>
Action to run after a task associated with this RunCondition has run, whether successfully or not.
override
shouldRun(TaskInvocation invocation) FutureOr<bool>
Check if the provided task invocation should run.
override
toString() String
A string representation of this object.
override

Operators

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