SearchableChoiceFetcher<T> typedef
SearchableChoiceFetcher<T> =
Future<List<SearchableChoiceDataRow<T> > > Function(int? offset, int? limit, String? searchKeyword)
SearchableChoiceFetcher is a callback type that the SearchableChoice
gonna call.
offset
and limit
can be null in case of searching.
searchKeyword
always null when the user doesn't search anything (search bar is empty).
Implementation
typedef SearchableChoiceFetcher<T> = Future<List<SearchableChoiceDataRow<T>>> Function(
int? offset,
int? limit,
String? searchKeyword,
);