FileRef class final

One immutable file reference: the typed view of the contract's FileRefData — a wire-safe snapshot of one lp_file_refs row. Bytes live in the runtime's blob store; metadata lives in the kernel.

Constructors

FileRef({required String refId, required String store, required String recordId, required String field, required String hash, required String state, String? name, String? group, String? remoteName, int nextRetryAt = 0, int attemptCount = 0, String? lastError})
Creates a file reference.
const
FileRef.fromData(FileRefData data)
Maps the contract's wire snapshot onto the typed view.
factory

Properties

attemptCount → int
Number of attempted file operations.
final
field → String
Attachment field name.
final
group → String?
The optional grouping label you attached the file with, or null.
final
hash → String
Content hash used to locate the blob.
final
hashCode → int
The hash code for this object.
no setteroverride
lastError → String?
Most recent file-operation error.
final
name → String?
The filename you supplied when attaching, or null when you did not.
final
nextRetryAt → int
Persisted retry deadline (epoch milliseconds).
final
recordId → String
Record containing the attachment.
final
refId → String
Stable local file-reference id.
final
remoteName → String?
Remote filename, when known.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → String
Lifecycle state: pending upload, synced, pending remove, remote-only, or orphaned.
final
store → String
Store containing the owning record.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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