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,
  $7.ObjectDetails? details,
  $core.int? length,
  $10.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;
}