PasswordModel constructor
PasswordModel({
- String prompt = 'Password: ',
- String placeholder = '',
- PasswordEchoMode echoMode = PasswordEchoMode.mask,
- String maskChar = '*',
- int fixedMaskLength = 6,
- int minLength = 0,
- int maxLength = 0,
- bool showHelp = false,
- String? validate()?,
- PasswordKeyMap? keyMap,
- PasswordStyles? styles,
- CursorModel? cursor,
Creates a new password model.
Implementation
PasswordModel({
this.prompt = 'Password: ',
this.placeholder = '',
this.echoMode = PasswordEchoMode.mask,
this.maskChar = '*',
this.fixedMaskLength = 6,
this.minLength = 0,
this.maxLength = 0,
this.showHelp = false,
this.validate,
PasswordKeyMap? keyMap,
PasswordStyles? styles,
CursorModel? cursor,
}) : keyMap = keyMap ?? PasswordKeyMap(),
styles = styles ?? PasswordStyles.defaults(),
cursor = cursor ?? CursorModel();