RunOnChanges class
A RunCondition which reports that a task should run whenever its inputs or outputs have changed since the last build.
If an empty FileCollection is given as both inputs and outputs, because an empty collection will never change, shouldRun will never return true, hence using this class in this way is likely a mistake.
- Mixed-in types
Constructors
- RunOnChanges({FileCollection inputs = FileCollection.empty, FileCollection outputs = FileCollection.empty, bool verifyOutputsExist = true, DartleCache? cache})
- Creates an instance of RunOnChanges.
Properties
- cache → DartleCache
-
final
- deletions → FileCollection
-
Deletions which are expected to be performed after an action has run.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- inputs → FileCollection
-
Inputs which should be monitored for changes.
final
- outputs → FileCollection
-
Outputs which should be monitored for changes.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- verifyOutputsExist → bool
-
whether to verify that all declared outputs exist after the task has run.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
postRun(
TaskResult result) → Future< 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