NullsafeTask class tasks

A task that checks if any of your dependencies can be made nullsafe.

It runs dart pub outdated --mode=null-safety to check on the current status of all packages. If any package has a nullsafe version that has not been installed yet, it shows it as available. Available nullsafety updates will not cause the task to reject your commit..

However, if any of the nullsafety updates can also be installed without a breaking version update, the package is listed as upgradeable and will cause the task to reject the commit until updated.

Inheritance
Available Extensions

Constructors

NullsafeTask({required ProgramRunner programRunner, required TaskLogger logger})
Default Constructor.
const

Properties

callForEmptyEntries bool
Specifies, whether the task should still be executed, even if no files match.
no setterinherited
filePattern Pattern
Returns a pattern to check if a RepoEntry can be processed by this task.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
logger TaskLogger
The TaskLogger instance used by this task.
finalinherited
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