ViewPagerRenderViewModel.copy constructor

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

Implementation

ViewPagerRenderViewModel.copy({
  required int id,
  required int instanceId,
  required String className,
  required RenderContext context,
  required ViewPagerRenderViewModel viewModel,
}) : super.copy(id, instanceId, className, context, viewModel) {
  scrollEnabled = viewModel.scrollEnabled;
  initialPage = viewModel.initialPage;
  pageMargin = viewModel.pageMargin;
  overflow = viewModel.overflow;
  pageController = viewModel.pageController;
  bounces = viewModel.bounces;
  isVertical = viewModel.isVertical;
}