PasswordGenerator constructor
PasswordGenerator({})
Implementation
PasswordGenerator({
this.hasCapitalLetters = true,
this.hasSmallLetters = true,
this.hasNumbers = true,
this.hasSymbols = true,
this.length = 10,
}) : assert(
hasCapitalLetters || hasNumbers || hasSmallLetters || hasSymbols,
'At least one of the conditions must be true.',
),
assert(
length > 0,
'length must be more than 0.',
);