PhoneNumInput class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- PhoneNumInput
Constructors
-
PhoneNumInput({Key? key, double? width, EdgeInsetsGeometry? margin, String? hintText, TextStyle? hintStyle, String? helperText, TextStyle? helperStyle, TextStyle? style, Widget? clearBtn, double clearBtnSize = defaultClearBtnSize, double clearBtnMaxSize = defaultClearBtnMaxSize, double inputBorderSideWidth = defaultInputBorderSideWidth, required TextEditingController controller, FocusNode? focusNode, ValueChanged<
bool> ? onNumInputComplete, ValueChanged<String> ? onChanged, TextInputAction textInputAction = TextInputAction.next, VoidCallback? onEditingComplete, bool isShowErrorState = false, bool isShowHelperText = false, bool isShowInputBorder = true, bool helperTextSyncErrorState = false})
Properties
- clearBtn → Widget?
-
The clear button of PhoneNumInput.
final
- clearBtnMaxSize → double
-
The size of the constraints for the clearBtn.
final
- clearBtnSize → double
-
The size of the clearBtn.
final
- controller → TextEditingController
-
Controls the text being edited.
final
- focusNode → FocusNode?
-
Defines the keyboard focus for this widget.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- helperStyle → TextStyle?
-
The style to use for the helperText.
final
- helperText → String?
-
Text that provides context about the InputDecorator.child's value, such
as how the value will be used.
final
- helperTextSyncErrorState → bool
-
Whether the Helper text is synchronized with the error state.
final
- hintStyle → TextStyle?
-
The style to use for the hintText.
final
- hintText → String?
-
Text that suggests what sort of input the field accepts.
final
- inputBorderSideWidth → double
-
The width of this side of the border.
final
- isShowErrorState → bool
-
Whether to show error state.
final
- isShowHelperText → bool
-
Whether to show helperText.
final
- isShowInputBorder → bool
-
Whether to show InputBorder of PhoneNumInput.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- margin → EdgeInsetsGeometry?
-
Empty space to surround the container and PhoneNumInput.
final
-
onChanged
→ ValueChanged<
String> ? -
The callback with value change.
final
- onEditingComplete → VoidCallback?
-
See TextField.onEditingComplete for details.
final
-
onNumInputComplete
→ ValueChanged<
bool> ? -
The callback with a length of 11.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- 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
- width → double?
-
The width of PhoneNumInput.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< StatefulWidget> -
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