NationCodePicker class
final
Constructors
-
NationCodePicker.new({Key? key, required NationCodes defaultNationCode, void onNationSelected(NationCodes)?, Color? dialCodeColor, String? dialCodeFontFamily, FontWeight? dialCodeFontWeight, bool hideSearch = false, bool hideFlag = false, bool hideDialCode = false, String? title, Locale? locale})
-
Creates a NationCodePicker widget.
const
Properties
-
defaultNationCode
→ NationCodes
-
The default NationCodes to be selected when the picker is first shown.
final
-
dialCodeColor
→ Color?
-
The color of the text displaying the nation's dial code.
Defaults to CupertinoColors.label.
final
-
dialCodeFontFamily
→ String?
-
The font family for the text displaying the nation's dial code.
Defaults to the system font.
final
-
dialCodeFontWeight
→ FontWeight?
-
The font weight for the text displaying the nation's dial code.
Defaults to FontWeight.normal.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
hideDialCode
→ bool
-
Whether to hide the dial code of the selected nation.
Defaults to
false
, meaning the dial code is shown.
final
-
hideFlag
→ bool
-
Whether to hide the flag representing the selected nation.
Defaults to
false
, meaning the flag is shown.
final
-
hideSearch
→ bool
-
Whether the textfield that provides the search feature is hidden or not.
Defaults to
false
, meaning the search bar is shown.
final
-
key
→ Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
locale
→ Locale?
-
The locale to be used for displaying the nation names.
If not provided, default nation names are shown.
final
-
onNationSelected
→ void Function(NationCodes)?
-
Callback function that is called when a nation code is selected.
If null, no action is taken when a nation is selected.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
title
→ String?
-
The title of the picker dialog.
If not provided, is not used.
final