fromData<Y> static method

Implementation

static EndlessStreamGridView fromData<Y>(EndlessStreamGridViewData<Y> data) {
  return EndlessStreamGridView<Y>(
    gridDelegate: data.gridDelegate,
    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,
    physics: data.physics,
  );
}