FdcDataSetWork class

Lightweight observable work state owned by a dataset.

The dataset emits lifecycle notifications only when work starts, completes or fails. Progress updates intentionally do not notify listeners; UI widgets that want live progress should poll progress while isWorking is true.

Inheritance

Constructors

FdcDataSetWork()

Properties

current → FdcDataSetWorkInfo?
Snapshot of the currently active work operation, or null while idle.
no setter
error → Object?
Last captured work error, if the most recent transition failed.
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
id → int
Last/current work id. This increments every time begin is called.
no setter
isWorking → bool
Whether the dataset is currently performing a reported work operation.
no setter
message → String?
Optional user-facing or diagnostic work message.
no setter
mode → FdcDataSetWorkMode?
Current progress mode, or null while idle.
no setter
phase → FdcDataSetWorkPhase
Current high-level work phase.
no setter
progress → double?
Current work progress.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stackTrace → StackTrace?
Last captured work error stack trace, if available.
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
Discards any resources used by the object.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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