FileRenderSandbox class final

A file-backed RenderSandbox under a real directory.

Writes through to disk exactly as the render pipeline always has (the same openWrite/writeAsString/writeAsBytes calls), so desktop and mobile renders stay byte-identical. A process-based encoder runs in directory.

Implemented types

Constructors

FileRenderSandbox(Directory directory)
Creates a sandbox over directory.

Properties

directory Directory
The directory holding this render's files.
final
directoryPath String?
The real directory path a process-based encoder runs in, or null for an in-memory sandbox (a process encoder is never selected there).
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

create() Future<void>
Prepares the sandbox for writing (creates the directory for a file-backed sandbox; a no-op in memory).
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openFrames(String name) CaptureSink
Opens name for appending raw frame bytes.
override
readBytes(String name) Future<Uint8List>
Reads name back as bytes.
override
toString() String
A string representation of this object.
inherited
writeBytes(String name, Uint8List bytes) Future<void>
Writes bytes to name (a materialized encoder input, or an output).
override
writeText(String name, String content) Future<void>
Writes content to name as UTF-8 text (the manifest).
override

Operators

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