FlutterPasswordCalculator constructor

const FlutterPasswordCalculator({
  1. Key? key,
  2. ValueChanged<String>? onChanged,
  3. FormFieldSetter<String>? onSaved,
  4. FormFieldValidator<String>? validator,
  5. InputDecoration? decoration,
  6. BoxDecoration? boxDecoration,
  7. TextEditingController? controller,
  8. Set<ValidationRule> validationRules = const {},
  9. bool hasShowHidePassword = true,
  10. IconData? showPasswordIcon,
  11. IconData? hidePasswordIcon,
  12. bool hasStrengthIndicator = true,
  13. StrengthIndicatorBuilder? strengthIndicatorBuilder,
  14. bool hasValidationRules = true,
  15. ValidationRulesBuilder? validationRuleBuilder,
  16. FlutterPasswordCalculatorController? passwordController,
  17. String? initialValue,
  18. FocusNode? focusNode,
  19. TextInputType? keyboardType,
  20. TextCapitalization textCapitalization = TextCapitalization.none,
  21. TextInputAction? textInputAction,
  22. TextStyle? style,
  23. StrutStyle? strutStyle,
  24. TextDirection? textDirection,
  25. TextAlign textAlign = TextAlign.start,
  26. TextAlignVertical? textAlignVertical,
  27. bool autofocus = false,
  28. bool readOnly = false,
  29. ToolbarOptions? toolbarOptions,
  30. bool? showCursor,
  31. String obscuringCharacter = '•',
  32. bool autocorrect = true,
  33. SmartDashesType? smartDashesType,
  34. SmartQuotesType? smartQuotesType,
  35. bool enableSuggestions = true,
  36. MaxLengthEnforcement? maxLengthEnforcement,
  37. int? maxLines = 1,
  38. int? minLines,
  39. bool expands = false,
  40. int? maxLength,
  41. GestureTapCallback? onTap,
  42. VoidCallback? onEditingComplete,
  43. ValueChanged<String>? onFieldSubmitted,
  44. List<TextInputFormatter>? inputFormatters,
  45. bool? enabled,
  46. double cursorWidth = 2.0,
  47. double? cursorHeight,
  48. Radius? cursorRadius,
  49. Color? cursorColor,
  50. Brightness? keyboardAppearance,
  51. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  52. bool enableInteractiveSelection = true,
  53. TextSelectionControls? selectionControls,
  54. InputCounterWidgetBuilder? buildCounter,
  55. ScrollPhysics? scrollPhysics,
  56. Iterable<String>? autofillHints,
  57. AutovalidateMode? autovalidateMode,
  58. ScrollController? scrollController,
  59. String? restorationId,
  60. bool enableIMEPersonalizedLearning = true,
  61. bool? obscureText,
})

Implementation

const FlutterPasswordCalculator({
  Key? key,
  this.onChanged,
  this.onSaved,
  this.validator,
  this.decoration,
  this.boxDecoration,
  this.controller,
  this.validationRules = const {},
  this.hasShowHidePassword = true,
  this.showPasswordIcon,
  this.hidePasswordIcon,
  this.hasStrengthIndicator = true,
  this.strengthIndicatorBuilder,
  this.hasValidationRules = true,
  this.validationRuleBuilder,
  this.passwordController,
  this.initialValue,
  this.focusNode,
  this.keyboardType,
  this.textCapitalization = TextCapitalization.none,
  this.textInputAction,
  this.style,
  this.strutStyle,
  this.textDirection,
  this.textAlign = TextAlign.start,
  this.textAlignVertical,
  this.autofocus = false,
  this.readOnly = false,
  this.toolbarOptions,
  this.showCursor,
  this.obscuringCharacter = '•',
  this.autocorrect = true,
  this.smartDashesType,
  this.smartQuotesType,
  this.enableSuggestions = true,
  this.maxLengthEnforcement,
  this.maxLines = 1,
  this.minLines,
  this.expands = false,
  this.maxLength,
  this.onTap,
  this.onEditingComplete,
  this.onFieldSubmitted,
  this.inputFormatters,
  this.enabled,
  this.cursorWidth = 2.0,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorColor,
  this.keyboardAppearance,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.enableInteractiveSelection = true,
  this.selectionControls,
  this.buildCounter,
  this.scrollPhysics,
  this.autofillHints,
  this.autovalidateMode,
  this.scrollController,
  this.restorationId,
  this.enableIMEPersonalizedLearning = true,
  this.obscureText,
}) : super(key: key);