fromView method

  1. @override
ViewPagerController fromView(
  1. YMRView<ViewController> view, {
  2. List<Widget>? items,
  3. OnPageChangeListener? onPageChange,
})
override

Implementation

@override
ViewPagerController fromView(
  YMRView<ViewController> view, {
  List<Widget>? items,
  OnPageChangeListener? onPageChange,
}) {
  super.fromView(view);
  this.items = items ?? [];
  this.onPageChange = onPageChange;
  return this;
}