discontinuedPackage androssy_widgets has been discontinued.

attach method

  1. @override
RecyclerViewController<T> attach(
  1. YMRView<ViewController> view, {
  2. Axis? direction,
  3. List<T>? items,
  4. int? itemCount,
  5. int? snapCount,
  6. RecyclerLayoutType? layoutType,
  7. RecyclerScrollingType? scrollingType,
  8. OnViewChangeListener? onPagingListener,
  9. 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;
}