OtpTextField class

Inheritance

Constructors

OtpTextField({bool showCursor = true, int numberOfFields = 4, double fieldWidth = 40.0, double? fieldHeight, Alignment? alignment, EdgeInsetsGeometry margin = const EdgeInsets.only(right: 8.0), TextStyle? textStyle, bool clearText = false, List<TextStyle?> styles = const [], TextInputType keyboardType = TextInputType.number, double borderWidth = 2.0, Color? cursorColor, Color disabledBorderColor = const Color(0xFFE7E7E7), Color enabledBorderColor = const Color(0xFFE7E7E7), Color borderColor = const Color(0xFFE7E7E7), Color focusedBorderColor = const Color(0xFF4F44FF), MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, HandleControllers? handleControllers, OnCodeEnteredCompletion? onSubmit, bool obscureText = false, bool showFieldAsBox = false, bool enabled = true, bool autoFocus = false, bool hasCustomInputDecoration = false, bool filled = false, Color fillColor = const Color(0xFFFFFFFF), bool readOnly = false, InputDecoration? decoration, OnCodeEnteredCompletion? onCodeChanged, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(4.0)), List<TextInputFormatter>? inputFormatters, EdgeInsetsGeometry? contentPadding})

Properties

alignment Alignment?
final
autoFocus bool
final
borderColor Color
final
borderRadius BorderRadius
final
borderWidth double
final
clearText bool
getter/setter pair
contentPadding EdgeInsetsGeometry?
final
crossAxisAlignment CrossAxisAlignment
final
cursorColor Color?
final
decoration InputDecoration?
final
disabledBorderColor Color
final
enabled bool
final
enabledBorderColor Color
final
fieldHeight double?
final
fieldWidth double
final
fillColor Color
final
filled bool
final
focusedBorderColor Color
final
handleControllers HandleControllers?
final
hasCustomInputDecoration bool
final
hashCode int
The hash code for this object.
no setterinherited
inputFormatters List<TextInputFormatter>?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType TextInputType
final
mainAxisAlignment MainAxisAlignment
final
margin EdgeInsetsGeometry
final
numberOfFields int
final
obscureText bool
final
onCodeChanged OnCodeEnteredCompletion?
final
onSubmit OnCodeEnteredCompletion?
final
readOnly bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showCursor bool
final
showFieldAsBox bool
final
styles List<TextStyle?>
final
textStyle TextStyle?
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _OtpTextFieldState
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}) 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