ScratchSpace class

An on-disk temporary environment for running executables that don't have a standard Dart library API.

Constructors

ScratchSpace()
ScratchSpace.existing(Directory tempDir)
Creates a ScratchSpace using an existing directory tempDir.
factory

Properties

changedFilesInBuild → Iterable<AssetId>
no setter
exists ↔ bool
Whether or not this scratch space still exists.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
packagesDir → Directory
The packages directory under the temp directory.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tempDir → Directory
The temp directory at the root of this ScratchSpace.
final

Methods

copyOutput(AssetId id, AssetWriter writer, {bool requireContent = false}) → Future<void>
Copies id from the tmp dir and writes it back using the writer.
delete() → Future<void>
Deletes the temp directory for this environment.
dispose() → void
Performs cleanup required across builds.
ensureAssets(Iterable<AssetId> assetIds, AssetReader reader) → Future<void>
Copies assetIds to tempDir if they don't exist, using reader to read assets and mark dependencies.
fileFor(AssetId id) → File
Returns the actual File in this environment corresponding to id.
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