TomFileRevision class

The version of a file as it was read: what a write is checked against.

Constructors

TomFileRevision({required DateTime modified, required int size, required String sha256})
const
TomFileRevision.of(Uint8List bytes, DateTime modified)
The revision of bytes last modified at modified.
factory

Properties

hashCode → int
The hash code for this object.
no setteroverride
modified → DateTime
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sha256 → String
SHA-256 of the bytes read, hex.
final
size → int
final

Methods

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
Two revisions are the same file content; the time is not compared, so a write of identical bytes is not a change.
override