FlagsDropDown class

Inheritance

Constructors

FlagsDropDown({Key? key, ValueKey? flagsButtonKey, String? initialCountryCode = 'BD', List<Country> countries = const [], List<String> favorite = const [], bool showDropdownIcon = true, Widget dropdownIcon = const Icon(Icons.arrow_drop_down), Position dropdownIconPosition = Position.leading, bool showDialogCountryFlag = true, BoxDecoration dropdownDecoration = const BoxDecoration(), EdgeInsetsGeometry flagsButtonPadding = EdgeInsets.zero, EdgeInsets flagsButtonMargin = EdgeInsets.zero, double? flagWidth = 32, TextStyle? dropdownTextStyle, bool disableFlagTap = false, String? languageCode, bool? rltSupport, PickerDialogStyle? pickerDialogStyle, Widget? favoriteIcon, Position favoriteIconPosition = Position.leading, bool? enableFavoriteIcon, Position fieldCountryCodePosition = Position.trailing, Position favoriteCountryCodePosition = Position.leading, Position dialogCountryCodePosition = Position.trailing, ValueChanged<Country>? onCountryChanged, bool countryCodeDisable = false, bool showFieldCountryFlag = true, double? countryPickerDialogBoxHeight})
const

Properties

countries List<Country>
added filter country in dropdown
final
countryCodeDisable bool
Disable country code.
final
countryPickerDialogBoxHeight double?
CountryPicker DialogBox Height
final
dialogCountryCodePosition Position
The position of the country code in the country picker dialog.
final
disableFlagTap bool
disable country choses by user
final
final
Icon of the drop down button.
final
final
The style use for the country dial code.
final
enableFavoriteIcon bool?
Enable or disable the Favorite Icon for the Favorite Country Lists.
final
favorite List<String>
added favorite countries to the top of the list
final
favoriteCountryCodePosition Position
The position of the favorite icon in the country picker dialog.
final
favoriteIcon Widget?
The icon to be displayed when favorite country list is Created.
final
favoriteIconPosition Position
Whether the favorite icon is left or right aligned.
final
fieldCountryCodePosition Position
The position of the country code in the flags button.
final
flagsButtonKey ValueKey?
final
flagsButtonMargin EdgeInsets
The margin of the country selector button.
final
flagsButtonPadding EdgeInsetsGeometry
The padding of the Flags Button.
final
flagWidth double?
The width of the country flag.
final
hashCode int
The hash code for this object.
no setterinherited
initialCountryCode String?
2 letter ISO Code or country dial code.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
languageCode String?
Use LanguageCode for Localization Country List.
final
onCountryChanged ValueChanged<Country>?
final
pickerDialogStyle PickerDialogStyle?
Optional set of styles to allow for customizing the country search & pick dialog
final
rltSupport bool?
RLT Support for Localization
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showDialogCountryFlag bool
Whether to show or hide country flag.
final
showDropdownIcon bool
Won't work if enabled is set to false.
final
showFieldCountryFlag bool
Disable country flag in TextField.
final

Methods

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