AdvanceCountryPicker class

Constructors

AdvanceCountryPicker.new()
factory

Properties

countries List<Country>
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getCountryByCountryCode(String countryCode) Future<Country?>
getCountryByCountryName(String countryName) Future<Country?>
getCountryByDialCode(String dialCode) Future<Country?>
getCountryByNationality(String nationality) Future<Country?>
loadCountries({List<String> filterCountries = const []}) Future<List<Country>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
showCountryPickerDialog(BuildContext context, {Widget? title, double cornerRadius = 20, bool focusSearchBox = false, List<String> filteredCountries = const [], TextStyle itemTextStyle = const TextStyle(fontSize: 16), TextStyle searchInputStyle = const TextStyle(fontSize: 16), InputDecoration? searchInputDecoration, double flagIconWidth = 32, double flagIconHeight = 22, bool showSeparator = false, String searchHintText = "Search country name, code"}) Future<Country?>
showCountryPickerSheet(BuildContext context, {Widget? title, Widget? cancelWidget, double cornerRadius = 25, bool focusSearchBox = false, double heightFactor = 0.9, List<String> filteredCountries = const [], TextStyle itemTextStyle = const TextStyle(fontSize: 16), TextStyle searchInputStyle = const TextStyle(fontSize: 16), InputDecoration? searchInputDecoration, double flagIconWidth = 32, double flagIconHeight = 22, bool showSeparator = false, String searchHintText = "Search country name, code"}) Future<Country?>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited