ShellContext class abstract

abstract shell context

Implementers
Available extensions

Constructors

ShellContext()

Properties

encoding Encoding
Default shell encoding (systemEncoding on iOS)
no setter
hashCode int
The hash code for this object.
no setterinherited
path → Context
Path context.
no setter
platform ShellContextPlatform
Platform info
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shellEnvironment ShellEnvironment
Shell environment
no setter

Methods

close() Future<void>
Close the context
copyWith({ShellEnvironment? shellEnvironment}) ShellContext

Available on ShellContext, provided by the ShellContextExt extension

Copy with a new shell environment
newShellEnvironment({Map<String, String>? environment}) ShellEnvironment
New shell environment
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
runZoned<T>(Future<T> action()) Future<T>

Available on ShellContext, provided by the ShellContextExt extension

Run in a zone,
shell({ShellOptions? options}) Shell
New shell must set itself as a shell Context, shell environement is no longer relevent.
toString() String
A string representation of this object.
inherited
which(String command, {ShellEnvironment? environment, bool includeParentEnvironment = true}) Future<String?>
Which command.

Operators

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