CodeFields class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CodeFields
Constructors
-
CodeFields({Key? key, required int length, CodeFieldsController? controller, double fieldWidth = 60, double fieldHeight = 60, TextInputType keyboardType = TextInputType.number, InputDecoration inputDecoration = const InputDecoration(), TextStyle? textStyle, EdgeInsets margin = const EdgeInsets.symmetric(horizontal: 8.0), FormFieldValidator<
String> ? validator, dynamic onChanged(String)?, dynamic onCompleted(String)?, bool closeOnFinish = true, bool autofocus = false}) -
const
Properties
- autofocus → bool
-
Select the first TextFormField and display the keyboard when it is built.
final
- closeOnFinish → bool
-
Option that closes the keyboard when the code is finished entering.
final
- controller → CodeFieldsController?
-
Allows you to clear or set a code. Ensure you dispose of it when done.
final
- fieldHeight → double
-
Height of each TextFormField.
final
- fieldWidth → double
-
Width of each TextFormField.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inputDecoration → InputDecoration
-
Allows you to customize the TextFormField.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardType → TextInputType
-
Type of keyboard that shows up.
final
- length → int
-
Code length.
final
- margin → EdgeInsets
-
The margin between each TextFormField.
final
- onChanged → (dynamic Function(String)?)
-
The callback function that is executed when the entered code changes.
final
- onCompleted → (dynamic Function(String)?)
-
The callback function that is executed when the length of the entered code is complete.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textStyle → TextStyle?
-
The text style of the TextFormFields.
final
-
validator
→ FormFieldValidator<
String> ? -
An optional method that validates an input. Returns an error string to display if the input is invalid, or null otherwise.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _CodeFieldsState -
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