EditPassword constructor

EditPassword({
  1. TextEditingController? controller,
  2. String? label = "密码",
  3. int minLength = 1,
  4. int maxLength = 128,
  5. bool showPassword = false,
  6. FocusNode? focusNode,
  7. FuncString? onSubmitted,
  8. Color? cursorColor,
  9. String? errorText,
  10. TextInputAction? textInputAction = TextInputAction.done,
  11. 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();