RefreshWrapperRenderViewModel.copy constructor

RefreshWrapperRenderViewModel.copy(
  1. int id,
  2. int instanceId,
  3. String className,
  4. RenderContext<LoadInstanceContext> context,
  5. RefreshWrapperRenderViewModel viewModel,
)

Implementation

RefreshWrapperRenderViewModel.copy(
  int id,
  int instanceId,
  String className,
  RenderContext context,
  RefreshWrapperRenderViewModel viewModel,
) : super.copy(id, instanceId, className, context, viewModel) {
  _refreshWrapperItemRenderViewModel = viewModel.header;
  refreshEventDispatcher = viewModel.dispatcher;
  _content = viewModel.content;
  bounceTime = viewModel.bounceTime;
  preloadSize = viewModel.preloadSize;
  scrollGestureDispatcher = viewModel.scrollGestureDispatcher;
  refreshWrapperRenderContentViewModel = RefreshWrapperRenderContentViewModel(
    header: viewModel.header,
    content: viewModel.content,
    dispatcher: viewModel.dispatcher,
  );
}