Extra constructor

Extra({
  1. String? challenge,
  2. String? salt,
  3. int? keyLen,
  4. String? channelBinding,
  5. int? iterations,
  6. int? memory,
  7. String? kdf,
  8. String? nonce,
  9. Map<String, dynamic>? custom,
})

Implementation

Extra({
  String? challenge,
  String? salt,
  int? keyLen,
  String? channelBinding,
  int? iterations,
  int? memory,
  String? kdf,
  String? nonce,
  Map<String, dynamic>? custom,
}) : _challenge = challenge,
     _salt = salt,
     _keyLen = keyLen,
     _channelBinding = channelBinding,
     _iterations = iterations,
     _memory = memory,
     _kdf = kdf,
     _nonce = nonce {
  if (custom != null && custom.isNotEmpty) {
    this.custom.addAll(custom);
  }
}