attach method
RecyclerViewController<T>
attach(
- YMRView<
ViewController> view, { - Axis? direction,
- List<
T> ? items, - int? itemCount,
- int? snapCount,
- RecyclerLayoutType? layoutType,
- RecyclerScrollingType? scrollingType,
- OnViewChangeListener? onPagingListener,
- ScrollController? scrollController,
override
Implementation
@override
RecyclerViewController<T> attach(
YMRView<ViewController> view, {
Axis? direction,
List<T>? items,
int? itemCount,
int? snapCount,
RecyclerLayoutType? layoutType,
RecyclerScrollingType? scrollingType,
OnViewChangeListener? onPagingListener,
ScrollController? scrollController,
}) {
super.attach(view);
_itemCount = itemCount ?? _itemCount;
this.items = items ?? this.items;
this.direction = direction ?? this.direction;
this.layoutType = layoutType ?? this.layoutType;
this.snapCount = snapCount ?? this.snapCount;
this.scrollingType = scrollingType ?? this.scrollingType;
this.onPagingListener = onPagingListener ?? this.onPagingListener;
_scrollController = scrollController ?? _scrollController;
return this;
}