EditPassword constructor
EditPassword({
- TextEditingController? controller,
- String? label = "密码",
- int minLength = 1,
- int maxLength = 128,
- bool showPassword = false,
- FocusNode? focusNode,
- FuncString? onSubmitted,
- Color? cursorColor,
- String? errorText,
- TextInputAction? textInputAction = TextInputAction.done,
- Widget? prefixIcon = const Icon(Icons.lock),
Implementation
EditPassword({
TextEditingController? controller,
this.label = "密码",
this.minLength = 1,
this.maxLength = 128,
this.showPassword = false,
FocusNode? focusNode,
this.onSubmitted,
this.cursorColor,
this.errorText,
this.textInputAction = TextInputAction.done,
this.prefixIcon = const Icon(Icons.lock),
}) : controller = controller ?? TextEditingController(),
focusNode = focusNode ?? FocusNode(),
super();