PasswordBox constructor
const
PasswordBox({
- Key? key,
- TextEditingController? controller,
- VoidCallback? onEditingComplete,
- ValueChanged<
String> ? onSubmitted, - ValueChanged<
String> ? onChanged, - FocusNode? focusNode,
- bool enabled = true,
- String? placeholder,
- PasswordRevealMode revealMode = PasswordRevealMode.peek,
- bool autofocus = false,
- Widget? leadingIcon,
- TextStyle? placeholderStyle,
- double cursorWidth = 1.5,
- Radius cursorRadius = const Radius.circular(2.0),
- double? cursorHeight,
- Color? cursorColor,
- bool? showCursor,
- bool readOnly = false,
- String obscuringCharacter = '•',
- WidgetStateProperty<
BoxDecoration> ? decoration, - WidgetStateProperty<
BoxDecoration> ? foregroundDecoration, - Color? unfocusedColor,
- Color? highlightColor,
- Brightness? keyboardAppearance,
- TextAlign textAlign = TextAlign.start,
- TextAlignVertical? textAlignVertical,
- TextStyle? style,
- EdgeInsetsGeometry padding = kTextBoxPadding,
- ScrollController? scrollController,
- EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
- ScrollPhysics? scrollPhysics,
Creates a password box
Implementation
const PasswordBox({
super.key,
this.controller,
this.onEditingComplete,
this.onSubmitted,
this.onChanged,
this.focusNode,
this.enabled = true,
this.placeholder,
this.revealMode = PasswordRevealMode.peek,
this.autofocus = false,
this.leadingIcon,
this.placeholderStyle,
this.cursorWidth = 1.5,
this.cursorRadius = const Radius.circular(2.0),
this.cursorHeight,
this.cursorColor,
this.showCursor,
this.readOnly = false,
this.obscuringCharacter = '•',
this.decoration,
this.foregroundDecoration,
this.unfocusedColor,
this.highlightColor,
this.keyboardAppearance,
this.textAlign = TextAlign.start,
this.textAlignVertical,
this.style,
this.padding = kTextBoxPadding,
this.scrollController,
this.scrollPadding = const EdgeInsets.all(20.0),
this.scrollPhysics,
});