Worker class Data Models
Provider of WorkerState and functions to manage worker tasks:
- Inheritance
-
- Object
- BuildlessNotifier<
WorkerState> - Worker
- Annotations
-
- @Riverpod(keepAlive: true)
Constructors
- Worker()
Properties
- apiKey ↔ String
-
latefinalinherited
-
clients
→ List<
Client> -
List of assigned clients.
read-only
-
clientsPlanOf
→ List<
ClientPlan> -
List plans of assigned clients.
read-only
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- http → JournalHttpInterface
-
read-only
- journal → Journal
-
read-only
- journalAllOf → Journal
-
read-only
- key → WorkerKey
-
read-only
- name → String
-
read-only
- planSyncDateOf → DateTime
-
read-only
-
ref
→ NotifierProviderRef<
WorkerState> -
The Ref from the provider associated with this Notifier.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
-
servicesOf
→ List<
ServiceEntry> -
List of services(it names), one for all clients.
read-only
- shortName → String
-
read-only
- state ↔ WorkerState
-
The value currently exposed by this Notifier.
read / writeinherited
- stateOrNull → WorkerState?
-
The value currently exposed by this Notifier.
read-onlyinherited
- workerKey → WorkerKey
-
read-only
Methods
-
build(
String apiKey) → WorkerState -
checkAllServicesExist(
) → Future< void> - This should only be called if there is inconsistency:
-
journalAtDate(
DateTime date) → Journal -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
syncClients(
) → Future< void> -
syncPlanned(
) → Future< void> -
syncServices(
) → Future< void> - Synchronize List<ServiceEntry> of worker.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateShouldNotify(
WorkerState previous, WorkerState next) → bool -
A method invoked when the state exposed by this Notifier changes.
It compares the previous and new value, and return whether listeners
should be notified.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- urlClients ↔ String
-
read / write
- urlPlan ↔ String
-
read / write
- urlServices ↔ String
-
read / write