IntlPhoneField class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- IntlPhoneField
Constructors
-
IntlPhoneField({Key? key, String? initialCountryCode, bool obscureText = false, TextAlign textAlign = TextAlign.left, VoidCallback? onTap, bool readOnly = false, String? initialValue, TextInputType keyboardType = TextInputType.number, bool autoValidate = true, TextEditingController? controller, FocusNode? focusNode, InputDecoration? decoration, TextStyle? style, void onSubmitted(String)?, FormFieldValidator<
String> ? validator, ValueChanged<MobileNumberInfo> ? onChanged, FormFieldSetter<MobileNumberInfo> ? onSaved, bool showDropdownIcon = true, BoxDecoration dropdownDecoration = const BoxDecoration(), List<TextInputFormatter> ? inputFormatters, bool enabled = true, Brightness keyboardAppearance = Brightness.light, String searchText = 'Search by Country Name', Color? countryCodeTextColor, Color? dropDownArrowColor}) -
const
Properties
- autoValidate → bool
-
final
- controller → TextEditingController?
-
final
- countryCodeTextColor → Color?
-
Color of the country code
final
- decoration → InputDecoration?
-
final
- dropDownArrowColor → Color?
-
Color of the drop down arrow
final
- dropdownDecoration → BoxDecoration
-
final
- enabled → bool
-
final
- focusNode → FocusNode?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialCountryCode → String?
-
2 Letter ISO Code
final
- initialValue → String?
-
final
-
inputFormatters
→ List<
TextInputFormatter> ? -
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardAppearance → Brightness
-
final
- keyboardType → TextInputType
-
final
- obscureText → bool
-
final
-
onChanged
→ ValueChanged<
MobileNumberInfo> ? -
final
-
onSaved
→ FormFieldSetter<
MobileNumberInfo> ? -
final
- onSubmitted → void Function(String)?
-
final
- onTap → VoidCallback?
-
final
- readOnly → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchText → String
-
Placeholder Text to Display in Searchbar for searching countries
final
- showDropdownIcon → bool
-
final
- style → TextStyle?
-
final
- textAlign → TextAlign
-
final
-
validator
→ FormFieldValidator<
String> ? -
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _IntlPhoneFieldState -
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