futureSearchFn property Null safety

(Future<Tuple2<List, int>> Function?(String? keyword, String? orderBy, bool? orderAsc, List<Tuple2<String, String>>? filters, int? pageNb)?) futureSearchFn
final

futureSearchFn Future Function(String keyword, List itemsListToClearAndFill, int pageNb) used to search items from the network. Must return items (up to itemsPerPage if set). Must return an int with the total number of results (allows the handling of pagination).

Implementation

final Future<Tuple2<List<DropdownMenuItem>, int>> Function(
    String? keyword,
    String? orderBy,
    bool? orderAsc,
    List<Tuple2<String, String>>? filters,
    int? pageNb)? futureSearchFn;