OutdatedTask class tasks

A task that checks if any of your installed dependencies have to be updated.

It runs dart pub outdated to check on the current status of all packages. If any package can be updated, that update will be printed as a recommendation, but won't reject your commit.

The outdatedLevel however configures, which levels of outdatedness are acceptable. Any updates that at least reach the level are considered mandatory and if available will reject the commit. See OutdatedLevel for more details on which versions each level includes.

Inheritance
Available Extensions

Constructors

OutdatedTask({required ProgramRunner programRunner, required TaskLogger logger, required OutdatedLevel outdatedLevel})
Default Constructor.
const

Properties

callForEmptyEntries bool
Specifies, whether the task should still be executed, even if no files match.
no setteroverride
filePattern Pattern
Returns a pattern to check if a RepoEntry can be processed by this task.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
logger TaskLogger
The TaskLogger instance used by this task.
finalinherited
outdatedLevel OutdatedLevel
The level of outdateness that will cause the task to reject the commit.
final
programRunner ProgramRunner
The ProgramRunner instance used by this task.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
taskName String
Returns the user-visible name of the task.
no setteroverride

Methods

call(Iterable<RepoEntry> entries) Future<TaskResult>
Executes the task on all given entries.
override
collectOutdated({required bool nullSafety}) Future<OutdatedInfo>
Runs dart pub outdated and collects the results.
inherited
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