CountrySelectorNavigator constructor

const CountrySelectorNavigator({
  1. List<IsoCode>? countries,
  2. List<IsoCode>? favorites,
  3. @Deprecated('This is always on by default, this can be safely removed') bool addSeparator = true,
  4. @Deprecated('Use [showDialCode] instead') bool? showCountryCode,
  5. bool? showDialCode,
  6. bool sortCountries = false,
  7. String? noResultMessage,
  8. required bool searchAutofocus,
  9. TextStyle? subtitleStyle,
  10. TextStyle? titleStyle,
  11. InputDecoration? searchBoxDecoration,
  12. TextStyle? searchBoxTextStyle,
  13. Color? searchBoxIconColor,
  14. ScrollPhysics? scrollPhysics,
  15. double flagSize = 40,
  16. bool useRootNavigator = true,
})

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;