LlmNodeHost class abstract interface

What a Node search needs from the machine it runs on.

A port rather than dart:io, so the search itself stays in the default barrel and a test can describe a machine instead of building one.

Properties

hashCode → int
The hash code for this object.
no setterinherited
homeDirectory → String?
The user's home directory, or null when the host cannot say.
no setter
isWindows → bool
Whether paths join with \ and the executable is node.exe.
no setter
pathEntries → List<String>
The entries of PATH, in order; empty when there is none.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

directoryEntries(String directory) → List<String>
The names of the entries directly under directory; empty when it does not exist or cannot be read.
fileExists(String path) → bool
Whether path is an existing file; a symlink to one counts.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
versionOf(String executable) → Future<String?>
Runs [executable] --version and answers its first non-blank output line, or null when it could not be run or exited non-zero.

Operators

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