AFieldPassword constructor

const AFieldPassword({
  1. Key? key,
  2. String? label = "Senha",
  3. String identifier = 'password',
  4. bool readOnly = false,
  5. void onChanged(
    1. String?
    )?,
  6. List<ARule<String>>? customRules,
  7. void onSetShowPassword(
    1. bool
    )?,
  8. int? flexible,
  9. bool expanded = false,
  10. EdgeInsets? margin,
  11. int minLength = 8,
  12. bool autofocus = false,
  13. Widget? bottom,
  14. bool clearable = false,
  15. double height = 46,
  16. String? hintText,
  17. IconData? icon,
  18. TextInputType? keyboardType,
  19. bool linkToAForm = true,
  20. VoidCallback? onSubmit,
  21. void onUnfocus()?,
  22. EdgeInsets? padding,
  23. bool readonly = false,
  24. Widget? suffix,
  25. Iterable<String>? autofillHints = const <String>[AutofillHints.password],
})

Implementation

const AFieldPassword({
  super.key,
  super.label = "Senha",
  super.identifier = 'password',
  super.readOnly,
  super.onChanged,
  super.customRules,
  this.onSetShowPassword,
  super.flexible,
  super.expanded,
  super.margin,
  this.minLength = 8,
  super.autofocus,
  super.bottom,
  super.clearable,
  super.height,
  super.hintText,
  super.icon,
  super.keyboardType,
  super.linkToAForm,
  super.onSubmit,
  super.onUnfocus,
  super.padding,
  super.readonly,
  super.suffix,
  super.autofillHints = const <String>[AutofillHints.password],
}) : super(
    required: true,
);