loadData method

Future<List<Prediction>?> loadData(
  1. int pageIndex
)

Implementation

Future<List<Prediction>?> loadData(int pageIndex) {
  if (pageIndex == 0) {
    var text = _searchSubject.value;
    if (text.isNotEmpty) {
      return service.search(text,
          lang: widget.langName, component: widget.component);
    }
  }
  return Future.value([]);
}