CountryPickerConfig class

Shared configuration for country picker widgets.

Keep this class limited to options used across multiple picker widgets.

Constructors

CountryPickerConfig({String? locale, BorderRadius flagBorderRadius = const BorderRadius.all(Radius.circular(4)), Color? flagBorderColor, double flagBorderWidth = 1.0, bool enableSearch = true, List<String> includeRegions = const [], List<String> excludeRegions = const [], List<String> includeCountries = const [], List<String> excludeCountries = const [], String titleText = 'Select Country', String searchHintText = 'Search countries...', String emptyStateText = 'No countries found', String selectCountryHintText = 'Select a country'})
Shared configuration for country picker widgets.
const

Properties

emptyStateText → String
Message shown when no countries match the search query.
final
enableSearch → bool
Whether to enable search.
final
excludeCountries → List<String>
Countries to exclude (by alpha-2 code).
final
excludeRegions → List<String>
Regions to exclude.
final
flagBorderColor → Color?
Border color of the flag.
final
flagBorderRadius → BorderRadius
Border radius of the flag.
final
flagBorderWidth → double
Border width of the flag.
final
hashCode → int
The hash code for this object.
no setterinherited
includeCountries → List<String>
Countries to include (by alpha-2 code).
final
includeRegions → List<String>
Regions to include.
final
locale → String?
Locale code for displaying country names in a specific language.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
searchHintText → String
Hint text for the search field.
final
selectCountryHintText → String
Hint text shown when no country is selected.
final
titleText → String
Title text shown in the picker header (e.g. "Select Country").
final

Methods

copyWith({String? locale, BorderRadius? flagBorderRadius, Color? flagBorderColor, double? flagBorderWidth, bool? enableSearch, List<String>? includeRegions, List<String>? excludeRegions, List<String>? includeCountries, List<String>? excludeCountries, String? titleText, String? searchHintText, String? emptyStateText, String? selectCountryHintText}) → CountryPickerConfig
Copy with method.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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