fromSlideImageView method

SlideLayoutController<T> fromSlideImageView(
  1. SlideLayout<T> view
)

Implementation

SlideLayoutController<T> fromSlideImageView(SlideLayout<T> view) {
  super.fromView(view);
  this.counterBuilder = view.counterBuilder;
  this.counterHandler = view.counterHandler;
  this.counterPosition = view.counterPosition ?? ViewPositionType.topRight;
  this.counterVisible = view.counterVisible ?? true;
  this.index.value = view.index;
  this.items = view.items;
  this.frameRatio = view.frameRatio;
  this.pager = PageController(initialPage: index.value);
  this.tvCounter = TextViewController();
  return this;
}