WorkingDirectoryAgent class

A utility for manipulating files and directories in workingDirectory.

Implementers

Constructors

WorkingDirectoryAgent(Directory workingDirectory, {bool create = true})
WorkingDirectoryAgent.current()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
workingDirectory Directory
final

Methods

addOrReplaceFile(String path, String contents, {List<String> imports = const []}) → void
Adds or replaces file in this terminal's working directory
getDependencies({bool offline = true}) Future<ProcessResult>
getFile(String path) File?
modifyFile(String path, String contents(String current)) → void
Updates the contents of an existing file
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

Static Methods

copyDirectory({required Uri src, required Uri dst}) → void