fromData<Y> static method

Implementation

static EndlessPaginationStreamBuilder fromData<Y>(
  EndlessPaginationData<Y> data,
) {
  return EndlessPaginationStreamBuilder<Y>(
    loadMore: data.loadMore,
    controller: data.controller,
    builder: data.builder,
    paginationDelegate: data.paginationDelegate,
    initialLoad: data.initialLoad ?? true,
  );
}