SecretGenerator constructor

SecretGenerator({
  1. SecretGeneratorType? generatorType,
  2. ObjectDetails? details,
  3. int? length,
  4. Duration? expiry,
  5. bool? includeLowerLetters,
  6. bool? includeUpperLetters,
  7. bool? includeDigits,
  8. bool? includeSymbols,
})

Implementation

factory SecretGenerator({
  SecretGeneratorType? generatorType,
  $8.ObjectDetails? details,
  $core.int? length,
  $7.Duration? expiry,
  $core.bool? includeLowerLetters,
  $core.bool? includeUpperLetters,
  $core.bool? includeDigits,
  $core.bool? includeSymbols,
}) {
  final $result = create();
  if (generatorType != null) {
    $result.generatorType = generatorType;
  }
  if (details != null) {
    $result.details = details;
  }
  if (length != null) {
    $result.length = length;
  }
  if (expiry != null) {
    $result.expiry = expiry;
  }
  if (includeLowerLetters != null) {
    $result.includeLowerLetters = includeLowerLetters;
  }
  if (includeUpperLetters != null) {
    $result.includeUpperLetters = includeUpperLetters;
  }
  if (includeDigits != null) {
    $result.includeDigits = includeDigits;
  }
  if (includeSymbols != null) {
    $result.includeSymbols = includeSymbols;
  }
  return $result;
}