TransferPreflight class

Snapshot handed to a confirmation hook once both ends know the manifest and resume state, but before any file is written or any data flows.

Constructors

TransferPreflight({required List<ManifestEntry> entries, required Map<String, int> have, required int total, required String dest, required bool into})
Creates a preflight snapshot.
const

Properties

dest String
The resolved destination path (a directory to write into, or the explicit target name when into is false).
final
entries List<ManifestEntry>
Every file in the transfer.
final
hashCode int
The hash code for this object.
no setterinherited
have Map<String, int>
Bytes already present at the destination, per entry path.
final
into bool
Whether the source is written into dest as a directory (keeping its top-level name); when false, dest names the result itself (rename).
final
overwrites List<ManifestEntry>
Entries that already exist in full at the destination (will be re-sent and verified — i.e. overwritten if content differs).
no setter
resumes List<ManifestEntry>
Entries present only partially (the transfer will resume them).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
total int
Total uncompressed bytes across all entries.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
targetFor(String entryPath) String
The final resolved path where entryPath will be written.
toString() String
A string representation of this object.
inherited

Operators

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