PasswordTextField class Null safety

PasswordTextField is a TextField that manages the toggle of obscure. If you want to see the details of the API, check the TextField.

It has almost the same API as TextField, so it can be replaced.

Inheritance

Constructors

PasswordTextField({Key? key, TextEditingController? controller, FocusNode? focusNode, List<TextInputFormatter>? inputFormatters, ValueChanged<String>? onChanged, VoidCallback? onEditingComplete, ValueChanged<String>? onSubmitted, GestureTapCallback? onTap, InputDecoration decoration = const InputDecoration(), TextInputAction textInputAction = TextInputAction.done, TextStyle? style, StrutStyle? strutStyle, bool autofocus = false, int maxLength = TextField.noMaxLength, IconData visibleIcon = Icons.visibility, IconData inVisibleIcon = Icons.visibility_off})
Creates a Material Design text field that manages visible/inVisible icon.
const

Properties

autofocus bool
Whether this text field should focus itself if nothing else is already focused.
final
controller TextEditingController?
Controls the text being edited.
final
decoration InputDecoration
The decoration to show around the text field.
final
focusNode FocusNode?
Defines the keyboard focus for this widget.
final
hashCode int
The hash code for this object.
@nonVirtualread-onlyinherited
inputFormatters List<TextInputFormatter>?
Optional input validation and formatting overrides.
final
inVisibleIcon IconData
Displaying toggle icon(hide).
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxLength int
The maximum number of characters (Unicode scalar values) to allow in the text field.
final
onChanged ValueChanged<String>?
Called when the user initiates a change to the TextField's value: when they have inserted or deleted text.
final
onEditingComplete VoidCallback?
Called when the user submits editable content (e.g., user presses the "done" button on the keyboard).
final
onSubmitted ValueChanged<String>?
Called when the user indicates that they are done editing the text in the field.
final
onTap GestureTapCallback?
{@template flutter.material.textfield.onTap} Called for each distinct tap except for every second tap of a double tap.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
strutStyle StrutStyle?
The strut style used for the vertical layout.
final
style TextStyle?
The style to use for the text being edited.
final
textInputAction TextInputAction
The type of action button to use for the keyboard.
final
visibleIcon IconData
Displaying toggle icon(show).
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _PasswordTextFieldState
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.
@protectedinherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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}) 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.
@nonVirtualinherited