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, bool autoValidate = true, TextEditingController? controller, FocusNode? focusNode, InputDecoration? decoration, TextStyle? style, void onSubmitted(String)?, FormFieldValidator<
String> ? validator, ValueChanged<PhoneNumber> ? onChanged, List<String> ? countries, ValueChanged<PhoneNumber> ? onCountryChanged, FormFieldSetter<PhoneNumber> ? 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, bool autofocus = false, TextInputAction? textInputAction, int? maxLength, Function? onSubmit, String? fontFamily, required String hintText, VoidCallback? onEditingComplete}) -
const
Properties
- autofocus → bool
-
final
- autoValidate → bool
-
final
- controller → TextEditingController?
-
final
-
countries
→ List<
String> ? -
final
- countryCodeTextColor → Color?
-
final
- decoration → InputDecoration?
-
final
- dropDownArrowColor → Color?
-
final
- dropdownDecoration → BoxDecoration
-
final
- enabled → bool
-
final
- focusNode → FocusNode?
-
final
- fontFamily → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hintText → String
-
final
- initialCountryCode → String?
-
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
- maxLength → int?
-
final
- obscureText → bool
-
final
-
onChanged
→ ValueChanged<
PhoneNumber> ? -
final
-
onCountryChanged
→ ValueChanged<
PhoneNumber> ? -
final
- onEditingComplete → VoidCallback?
-
final
-
onSaved
→ FormFieldSetter<
PhoneNumber> ? -
final
- onSubmit → Function?
-
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
-
final
- showDropdownIcon → bool
-
final
- style → TextStyle?
-
final
- textAlign → TextAlign
-
final
- textInputAction → TextInputAction?
-
final
-
validator
→ FormFieldValidator<
String> ? -
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< IntlPhoneField> -
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