InMemoryFiles class

Files paths and their contents.

Implemented types

Constructors

InMemoryFiles({required WitFile worldFile, required List<WitFile> pkgFiles})
Files paths and their contents.
const
InMemoryFiles.fromJson(Object? json_)
Returns a new instance from a JSON value. May throw if the value does not have the expected structure.
factory

Properties

hashCode → int
The hash code for this object.
no setteroverride
pkgFiles → List<WitFile>
The files to use as the package files for the world. You will be able to import with use pkg from these files.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
worldFile → WitFile
The file to use as the world file.
final

Methods

copyWith({WitFile? worldFile, List<WitFile>? pkgFiles}) → InMemoryFiles
Returns a new instance by overriding the values passed as arguments
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
Returns a JSON representation of this.
override
toString() → String
A string representation of this object.
override
toWasm() → List<Object?>
Returns this as a WASM canonical abi value.
override

Operators

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