copyWith method

CronTask copyWith({
  1. String? id,
  2. String? cron,
  3. String? prompt,
  4. int? createdAt,
  5. int? lastFiredAt,
  6. bool? recurring,
  7. bool? permanent,
  8. bool? durable,
  9. String? agentId,
})

Implementation

CronTask copyWith({
  String? id,
  String? cron,
  String? prompt,
  int? createdAt,
  int? lastFiredAt,
  bool? recurring,
  bool? permanent,
  bool? durable,
  String? agentId,
}) => CronTask(
  id: id ?? this.id,
  cron: cron ?? this.cron,
  prompt: prompt ?? this.prompt,
  createdAt: createdAt ?? this.createdAt,
  lastFiredAt: lastFiredAt ?? this.lastFiredAt,
  recurring: recurring ?? this.recurring,
  permanent: permanent ?? this.permanent,
  durable: durable ?? this.durable,
  agentId: agentId ?? this.agentId,
);