CountrySelectorNavigator constructor
const
CountrySelectorNavigator({
- List<
IsoCode> ? countries, - List<
IsoCode> ? favorites, - @Deprecated('This is always on by default, this can be safely removed') bool addSeparator = true,
- @Deprecated('Use [showDialCode] instead') bool? showCountryCode,
- bool? showDialCode,
- bool sortCountries = false,
- String? noResultMessage,
- required bool searchAutofocus,
- TextStyle? subtitleStyle,
- TextStyle? titleStyle,
- InputDecoration? searchBoxDecoration,
- TextStyle? searchBoxTextStyle,
- Color? searchBoxIconColor,
- ScrollPhysics? scrollPhysics,
- double flagSize = 40,
Implementation
const CountrySelectorNavigator({
this.countries,
this.favorites,
@Deprecated('This is always on by default, this can be safely removed')
bool addSeparator = true,
@Deprecated('Use [showDialCode] instead') bool? showCountryCode,
bool? showDialCode,
this.sortCountries = false,
this.noResultMessage,
required this.searchAutofocus,
this.subtitleStyle,
this.titleStyle,
this.searchBoxDecoration,
this.searchBoxTextStyle,
this.searchBoxIconColor,
this.scrollPhysics,
this.flagSize = 40,
this.useRootNavigator = true,
}) : showDialCode = showDialCode ?? showCountryCode ?? true;