SelectionDialog constructor

SelectionDialog(
  1. List<CountryCode> elements,
  2. List<CountryCode> favoriteElements, {
  3. Key? key,
  4. bool? showCountryOnly,
  5. WidgetBuilder? emptySearchBuilder,
  6. InputDecoration searchDecoration = const InputDecoration(),
  7. TextStyle? searchStyle,
  8. TextStyle? textStyle,
  9. BoxDecoration? boxDecoration,
  10. bool? showFlag,
  11. Decoration? flagDecoration,
  12. double flagWidth = 32,
  13. Size? size,
  14. Color? backgroundColor,
  15. Color? barrierColor,
  16. bool hideSearch = false,
  17. Icon? closeIcon,
})

Implementation

SelectionDialog(
  this.elements,
  this.favoriteElements, {
  Key? key,
  this.showCountryOnly,
  this.emptySearchBuilder,
  InputDecoration searchDecoration = const InputDecoration(),
  this.searchStyle,
  this.textStyle,
  this.boxDecoration,
  this.showFlag,
  this.flagDecoration,
  this.flagWidth = 32,
  this.size,
  this.backgroundColor,
  this.barrierColor,
  this.hideSearch = false,
  this.closeIcon,
})  : this.searchDecoration = searchDecoration.prefixIcon == null
          ? searchDecoration.copyWith(prefixIcon: Icon(Icons.search))
          : searchDecoration,
      super(key: key);