PaginationController<T> constructor

PaginationController<T>(
  1. Future<List<T>> futureFunction(
    1. int pageKey
    )
)

Implementation

PaginationController(this.futureFunction) {
  getData();
  // Future.delayed(const Duration(seconds: 1)).then((value) => getData());
}