ScrollViewRenderViewModel.copy constructor
ScrollViewRenderViewModel.copy(
- int id,
- int instanceId,
- String className,
- RenderContext<
LoadInstanceContext> context, - ScrollViewRenderViewModel viewModel, [
- bool isHorizontal = false,
Implementation
ScrollViewRenderViewModel.copy(
int id,
int instanceId,
String className,
RenderContext context,
ScrollViewRenderViewModel viewModel, [
this.isHorizontal = false,
]) : super.copy(id, instanceId, className, context, viewModel) {
pagingEnable = viewModel.pagingEnable;
flingEnable = viewModel.flingEnable;
showScrollIndicator = viewModel.showScrollIndicator;
isHorizontal = viewModel.isHorizontal;
scrollGestureDispatcher = viewModel.scrollGestureDispatcher;
bounces = viewModel.bounces;
scrollViewDetailRenderViewModel = ScrollViewDetailRenderViewModel(
viewModel.children,
viewModel.context.renderManager.controllerManager,
viewModel.scrollController,
viewModel.scrollGestureDispatcher,
viewModel.pagingEnable,
viewModel.isHorizontal,
viewModel.showScrollIndicator,
viewModel.bounces,
);
}