SelectorConfig class

SelectorConfig contains selector button configurations

Constructors

SelectorConfig({PhoneInputSelectorType selectorType = PhoneInputSelectorType.DROPDOWN, bool showFlags = true, bool useEmoji = false, CountryComparator? countryComparator, bool setSelectorButtonAsPrefixIcon = false, double? leadingPadding, bool trailingSpace = true})
const

Properties

countryComparator CountryComparator?
countryComparator, sort the country list according to the comparator.
final
hashCode int
The hash code for this object.
no setterinherited
leadingPadding double?
Space before the flag icon
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectorType PhoneInputSelectorType
selectorType, for selector button type
final
setSelectorButtonAsPrefixIcon bool
setSelectorButtonAsPrefixIcon, this sets/places the selector button inside the TextField as a prefixIcon.
final
showFlags bool
showFlags, displays flag along side countries info on selector button and list items within the selector
final
trailingSpace bool
Add white space for short dial code
final
useEmoji bool
useEmoji, uses emoji flags instead of png assets
final

Methods

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