AuthServer constructor Null safety

AuthServer(
  1. AuthServerDelegate delegate,
  2. {int hashRounds = 1000,
  3. int hashLength = 32,
  4. Hash? hashFunction}
)

Creates a new instance of an AuthServer with a delegate.

hashFunction defaults to sha256.

Implementation

AuthServer(this.delegate,
    {this.hashRounds = 1000, this.hashLength = 32, Hash? hashFunction})
    : hashFunction = hashFunction ?? sha256;