PasswordRuleCheck class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- PasswordRuleCheck
Constructors
- PasswordRuleCheck({Key? key, required TextEditingController controller, required PasswordRuleSet ruleSet, Color? successColor, Color? errorColor, TextStyle? textStyle, PasswordRuleCheckTranslation? translation, bool showIcon = false, EdgeInsets textPadding = const EdgeInsets.symmetric(vertical: 4.0), double rowHeight = 16, BorderRadiusGeometry rowRadius = const BorderRadius.all(Radius.zero), double rowSpacing = 0})
-
const
-
PasswordRuleCheck.suggestedSafety({Key? key, required TextEditingController controller, required PasswordRuleSet ruleSet, required List<
PasswordRuleSet> optimalRules, Color? successColor, Color? errorColor, Color? acceptColor, TextStyle? textStyle, PasswordRuleCheckTranslation? translation, double rowHeight = 16, BorderRadiusGeometry rowRadius = const BorderRadius.all(Radius.zero)}) -
const
Properties
- acceptColor → Color?
-
Color used if a Password is OK but could be better
Defaults to Colors.amber
final
- controller → TextEditingController
-
TextEditingController of the Input Field
final
- errorColor → Color?
-
Color used if a Rule is not met
Defaults to the ErrorColor of the App Theme
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
optimalRules
→ List<
PasswordRuleSet> ? -
Rules that are not required but would increase the password strength
final
- rowHeight → double
-
Height of the validation bar. Defaults to 46
final
- rowRadius → BorderRadiusGeometry
-
Radius of each Segment in the validation bar. Defaults to 0
final
- rowSpacing → double
-
Spacing between segments in the validation bar. Default to 0
final
- ruleSet → PasswordRuleSet
-
PasswordRuleSet that the password should be checked against
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showIcon → bool
-
Toggles visibility of Icons next to the Rule Text
final
- successColor → Color?
-
Color used if a Rule is met
Defaults to Colors.green
final
- textPadding → EdgeInsets
-
Padding of the TextElements showing the PasswordRules
final
- textStyle → TextStyle?
-
TextStyle of the Rule Hints
final
- translation → PasswordRuleCheckTranslation?
-
Custom Translations for Rule Texts
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → PasswordRuleCheckState -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited