RefreshWrapperRenderViewModel.copy constructor
RefreshWrapperRenderViewModel.copy(
- int id,
- int instanceId,
- String className,
- RenderContext<
LoadInstanceContext> context, - 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,
);
}