ScrollViewRenderViewModel.copy constructor

ScrollViewRenderViewModel.copy(
  1. int id,
  2. int instanceId,
  3. String className,
  4. RenderContext<LoadInstanceContext> context,
  5. ScrollViewRenderViewModel viewModel, [
  6. 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,
  );
}