Schedule class
A schedule definition (spec-compliant).
Constructors
- Schedule({required String id, String name = '', String description = '', ExecutionTarget? target, required Trigger trigger, required ScheduledAction action, ScheduleStatus status = ScheduleStatus.active, int priority = 5, ScheduleConfig? config, required DateTime createdAt, DateTime? updatedAt, DateTime? lastRunAt, DateTime? nextRunAt, int runningCount = 0, @Deprecated('Use status parameter instead') bool enabled = true})
Properties
- action → ScheduledAction
-
Action to execute.
final
- config → ScheduleConfig
-
Schedule configuration.
final
- createdAt → DateTime
-
When schedule was created.
final
- description → String
-
Schedule description.
final
- enabled → bool
-
Whether schedule is enabled (convenience getter for backward compatibility).
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Schedule identifier.
final
- lastExecutedAt → DateTime?
-
Backward-compatible alias for lastRunAt.
no setter
- lastRunAt → DateTime?
-
Last run time.
final
- name → String
-
Human-readable schedule name.
final
- nextRunAt → DateTime?
-
Next expected run time.
final
- priority → int
-
Execution priority (1-10, higher = more urgent, default 5).
final
- registeredAt → DateTime
-
Backward-compatible alias for createdAt.
no setter
- runningCount → int
-
Number of currently running executions for this schedule.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → ScheduleStatus
-
Schedule status (replaces simple enabled flag).
final
- target → ExecutionTarget?
-
Execution target reference.
final
- taskId → String
-
Backward-compatible alias for id.
no setter
- trigger → Trigger
-
Trigger configuration.
final
- updatedAt → DateTime
-
When schedule was last updated.
final
Methods
-
copyWith(
{String? id, String? name, String? description, ExecutionTarget? target, Trigger? trigger, ScheduledAction? action, ScheduleStatus? status, int? priority, ScheduleConfig? config, DateTime? createdAt, DateTime? updatedAt, DateTime? lastRunAt, DateTime? nextRunAt, int? runningCount, bool? enabled}) → Schedule -
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 -
The equality operator.
inherited