CountryDialCodePicker class

Inheritance

Constructors

CountryDialCodePicker({Key? key, Color? arrowDropDownColor, double borderRadius = 0.0, BottomSheetSettings bottomSheetSettings = const BottomSheetSettings(), FlagImageSettings flagImageSettings = const FlagImageSettings(), String? initialSelection, ValueChanged<CountryDialCode>? onChanged, EdgeInsets padding = const EdgeInsets.all(8.0), bool showArrowDropDown = true, bool showCountryDialCode = true, bool showFlag = true, TextStyle? textStyle})
const

Properties

arrowDropDownColor Color?
Arrow drop down icon color.
final
borderRadius double
Radius of the button for splash.
final
bottomSheetSettings BottomSheetSettings
Settings of the button sheet with all countries.
final
flagImageSettings FlagImageSettings
Flag image settings.
final
hashCode int
The hash code for this object.
no setterinherited
initialSelection String?
The country ISO 3166-1 Alpha-2 code for initial selection.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onChanged ValueChanged<CountryDialCode>?
Event when user change country code.
final
padding EdgeInsets
Padding to apply around to the button picker.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showArrowDropDown bool
Show arrow drop down icon.
final
showCountryDialCode bool
Show country dial code selected.
final
showFlag bool
Show flag inside button picker.
final
textStyle TextStyle?
Style to apply of the country dial codes.
final

Methods

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