ChallengeManager constructor

ChallengeManager({
  1. required String serverId,
  2. Duration ttl = kDefaultAuthenticationChallengeTtl,
  3. int maxAttempts = kDefaultAuthenticationMaxAttempts,
  4. DateTime now()?,
})

Implementation

ChallengeManager({
  required this.serverId,
  this.ttl = kDefaultAuthenticationChallengeTtl,
  this.maxAttempts = kDefaultAuthenticationMaxAttempts,
  DateTime Function()? now,
}) : _now = now ?? DateTime.now;