PasswordBox constructor

const PasswordBox({
  1. Key? key,
  2. TextEditingController? controller,
  3. VoidCallback? onEditingComplete,
  4. ValueChanged<String>? onSubmitted,
  5. ValueChanged<String>? onChanged,
  6. FocusNode? focusNode,
  7. bool enabled = true,
  8. String? placeholder,
  9. PasswordRevealMode revealMode = PasswordRevealMode.peek,
  10. bool autofocus = false,
  11. Widget? leadingIcon,
  12. TextStyle? placeholderStyle,
  13. double cursorWidth = 1.5,
  14. Radius cursorRadius = const Radius.circular(2.0),
  15. double? cursorHeight,
  16. Color? cursorColor,
  17. bool? showCursor,
  18. bool readOnly = false,
  19. String obscuringCharacter = '•',
  20. WidgetStateProperty<BoxDecoration>? decoration,
  21. WidgetStateProperty<BoxDecoration>? foregroundDecoration,
  22. Color? unfocusedColor,
  23. Color? highlightColor,
  24. Brightness? keyboardAppearance,
  25. TextAlign textAlign = TextAlign.start,
  26. TextAlignVertical? textAlignVertical,
  27. TextStyle? style,
  28. EdgeInsetsGeometry padding = kTextBoxPadding,
  29. ScrollController? scrollController,
  30. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  31. 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,
});