fromData<Y> static method

Implementation

static EndlessStreamListView fromData<Y>(EndlessStreamListViewData<Y> data) {
  return EndlessStreamListView<Y>(
    extentAfterFactor: data.extentAfterFactor,
    loadMore: data.loadMore,
    itemBuilder: data.itemBuilder,
    stream: data.stream,
    headerBuilder: data.headerBuilder,
    headerBuilderState: data.headerBuilderState,
    emptyBuilder: data.emptyBuilder,
    emptyBuilderState: data.emptyBuilderState,
    loadingBuilder: data.loadingBuilder,
    loadingBuilderState: data.loadingBuilderState,
    loadMoreBuilder: data.loadMoreBuilder,
    loadMoreBuilderState: data.loadMoreBuilderState,
    footerBuilder: data.footerBuilder,
    footerBuilderState: data.footerBuilderState,
    controller: data.controller,
    scrollController: data.scrollController,
    padding: data.padding,
    loadOnSubscribe: data.loadOnSubscribe,
    onStateChange: data.onStateChange,
    physics: data.physics,
    itemPadding: data.itemPadding ?? 0,
  );
}