TOTP constructor

const TOTP(
  1. HOTP hotp, {
  2. int digits = 6,
  3. int period = 30,
})

Create a new TOTP instance.

@param hotp - The HOTP instance. @param digits - The number of digits in the code. @param period - The number of seconds in the time period.

Implementation

const TOTP(
  this.hotp, {
  this.digits = 6,
  this.period = 30,
});