DropdownDialog<T> class
Null safety
Class mainly used internally to display the available choices. Cannot be made private because of automated testing.
Constructors
-
DropdownDialog({dynamic key, List? items, dynamic hint, bool isCaseSensitiveSearch = false, dynamic closeButton, dynamic keyboardType, Function? searchFn, required bool multipleSelection, List<
int> ? selectedItems, Function? displayItem, dynamic doneButton, Function? validator, required bool dialogBox, required PointerThisPlease<bool> displayMenu, Function? callOnPop, Function? updateParent, dynamic style, dynamic iconEnabledColor, dynamic iconDisabledColor, required bool rightToLeft, required bool autofocus, required String initialSearchTerms, dynamic buildDropDownDialog(dynamic titleBar, dynamic searchBar, dynamic list, dynamic closeButton, dynamic dropDownContext)?, dynamic dropDownDialogPadding, dynamic searchInputDecoration, int? itemsPerPage, PointerThisPlease<int> ? currentPage, dynamic customPaginationDisplay(dynamic listWidget, int totalFilteredItemsNb, Function updateSearchPage)?, Future<Tuple2< futureSearchFn(String? keyword, String? orderBy, bool? orderAsc, List<List, int> >Tuple2< ? filters, int? pageNb)?, Map<String, String> >String, Map< ? futureSearchOrderOptions, Map<String, dynamic> >String, Map< ? futureSearchFilterOptions, List<String, Object> >T> ? futureSelectedValues, dynamic emptyListWidget, Function? onTap, Function? futureSearchRetryButton, int? searchDelay, required Function giveMeThePop, dynamic clearSearchIcon, String? listValidator(List<T?> )?})
Properties
- autofocus → bool
-
See SearchChoices class.
final
- buildDropDownDialog → (dynamic Function?(dynamic titleBar, dynamic searchBar, dynamic list, dynamic closeButton, dynamic dropDownContext)?)
-
See SearchChoices class.
final
- callOnPop → Function?
-
Function to be called whenever the dialogBox is popped or the menu gets
closed.
final
- clearSearchIcon → dynamic
-
See SearchChoices class.
final
- closeButton → dynamic
-
See SearchChoices class.
final
-
currentPage
→ PointerThisPlease<
int> ? -
See SearchChoices class.
final
- customPaginationDisplay → (dynamic Function?(dynamic listWidget, int totalFilteredItemsNb, Function updateSearchPage)?)
-
See SearchChoices class.
final
- dialogBox → bool
-
See SearchChoices class.
final
- displayItem → Function?
-
See SearchChoices class.
final
-
displayMenu
→ PointerThisPlease<
bool> -
See SearchChoices class.
final
- doneButton → dynamic
-
See SearchChoices class.
final
- dropDownDialogPadding → dynamic
-
See SearchChoices class.
final
- emptyListWidget → dynamic
-
See SearchChoices class.
final
-
futureSearchFilterOptions
→ Map<
String, Map< ?String, Object> > -
See SearchChoices class.
final
-
futureSearchFn
→ (Future<
Tuple2< Function?(String? keyword, String? orderBy, bool? orderAsc, List<List, int> >Tuple2< ? filters, int? pageNb)?)String, String> > -
See SearchChoices class.
final
-
futureSearchOrderOptions
→ Map<
String, Map< ?String, dynamic> > -
See SearchChoices class.
final
- futureSearchRetryButton → Function?
-
See SearchChoices class.
final
-
futureSelectedValues
→ List<
T> ? -
See SearchChoices class.
final
- giveMeThePop → Function
-
Assigns the pop function.
final
- hashCode → int
-
The hash code for this object.
read-only, inherited
- hint → dynamic
-
See SearchChoices class.
final
- iconDisabledColor → dynamic
-
See SearchChoices class.
final
- iconEnabledColor → dynamic
-
See SearchChoices class.
final
- initialSearchTerms → String
-
Used for the setOpenDialog. This allows the dialogBox to be opened with
search terms preset from an external button as shown in example
Single dialog open and set search terms
.final - isCaseSensitiveSearch → bool
-
See SearchChoices class.
final
- items → List?
-
See SearchChoices class.
final
- itemsPerPage → int?
-
See SearchChoices class.
final
- keyboardType → dynamic
-
See SearchChoices class.
final
- listScrollController → dynamic
-
Allows to reset the scroll to the top of the list after changing the page
final
-
listValidator
→ (String? Function?(List<
T?> )?) -
See SearchChoices class.
final
-
See SearchChoices class.
final
-
See SearchChoices class.
final
- multipleSelection → bool
-
See SearchChoices class.
final
- onTap → Function?
-
See SearchChoices class.
final
- rightToLeft → bool
-
See SearchChoices class.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- searchDelay → int?
-
See SearchChoices class.
final
- searchFn → Function?
-
See SearchChoices class.
final
- searchInputDecoration → dynamic
-
See SearchChoices class.
final
-
selectedItems
→ List<
int> ? -
See SearchChoices class.
final
- style → dynamic
-
See SearchChoices class.
final
- updateParent → Function?
-
Function called to update the parent screen when necessary. Calls
setState.
final
- validator → Function?
-
See SearchChoices class.
final
Methods
-
createState(
) → _DropdownDialogState< T> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited