Check class final

Ensures the availability of the received programs. It searches in the file system, the systems path variable and in the command line.

Inheritance

Constructors

Check({required String name, required String description, required List<String> programs, List<String> directories = const [], void onFailure(FlowContext context, List<String> notFound)?, void onSuccess(FlowContext context)?, bool searchCanStartProcesses = false})
const

Properties

description String
finalinherited
directories List<String>
Directories where the executables could be found.
final
hashCode int
The hash code for this object.
no setterinherited
name String
finalinherited
onFailure → void Function(FlowContext context, List<String> notFound)?
Gets triggered if one or multiple programs were not found.
final
onSuccess → void Function(FlowContext context)?
Gets triggered if all programs were found.
final
programs List<String>
Name (without extension) of the executables or links you are searching for.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchCanStartProcesses bool
Decide if the search procedure can start processes to found programs if they aren't in the systems path.
final

Methods

configure() Step
override
execute(FlowContext context) FutureOr<Response?>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

Looks for the programs in the systems path variable. If there isn't a match, it will be tried to start up a process of the program in the command line if canStartProcesses is set to false.