copyWith method

LivenessDetectionCooldown copyWith({
  1. int? failedAttempts,
  2. DateTime? cooldownEndTime,
  3. bool? isInCooldown,
})

Implementation

LivenessDetectionCooldown copyWith({
  int? failedAttempts,
  DateTime? cooldownEndTime,
  bool? isInCooldown,
}) {
  return LivenessDetectionCooldown(
    failedAttempts: failedAttempts ?? this.failedAttempts,
    cooldownEndTime: cooldownEndTime ?? this.cooldownEndTime,
    isInCooldown: isInCooldown ?? this.isInCooldown,
  );
}