SelectionDialog constructor
SelectionDialog(
- List<
CountryCode> elements, - List<
CountryCode> favoriteElements, { - Key? key,
- bool? showCountryOnly,
- WidgetBuilder? emptySearchBuilder,
- InputDecoration searchDecoration = const InputDecoration(),
- TextStyle? searchStyle,
- TextStyle? textStyle,
- BoxDecoration? boxDecoration,
- bool? showFlag,
- Decoration? flagDecoration,
- double flagWidth = 32,
- Size? size,
- Color? backgroundColor,
- Color? barrierColor,
- bool hideSearch = false,
- 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);