discontinuedPackage androssy_widgets has been discontinued.

attach method

  1. @override
SlideImageViewController<T> attach(
  1. YMRView<ViewController> view, {
  2. SIVChangedHandler<T>? changedHandler,
  3. SIVCounterBuilder<T>? counterBuilder,
  4. ViewPositionType? counterPosition,
  5. bool? counterVisibility,
  6. double? frameRatio,
  7. Color? itemBackground,
  8. BoxFit? itemScaleType,
  9. ImageType? itemType,
  10. List<T>? items,
  11. dynamic placeholder,
  12. ImageType? placeholderType,
  13. int? selectionIndex,
  14. SIVIndexing<T>? selectionIndexBuilder,
})
override

Implementation

@override
SlideImageViewController<T> attach(
  YMRView<ViewController> view, {
  SIVChangedHandler<T>? changedHandler,
  SIVCounterBuilder<T>? counterBuilder,
  ViewPositionType? counterPosition,
  bool? counterVisibility,
  double? frameRatio,
  Color? itemBackground,
  BoxFit? itemScaleType,
  ImageType? itemType,
  List<T>? items,
  dynamic placeholder,
  ImageType? placeholderType,
  int? selectionIndex,
  SIVIndexing<T>? selectionIndexBuilder,
}) {
  this.changedHandler = changedHandler ?? this.changedHandler;
  this.counterBuilder = counterBuilder ?? this.counterBuilder;
  this.counterPosition = counterPosition ?? this.counterPosition;
  this.counterVisibility = counterVisibility ?? this.counterVisibility;
  this.frameRatio = frameRatio ?? this.frameRatio;
  this.itemBackground = itemBackground ?? this.itemBackground;
  this.itemScaleType = itemScaleType ?? this.itemScaleType;
  this.itemType = itemType ?? this.itemType;
  this.items = items ?? this.items;
  this.placeholder = placeholder ?? this.placeholder;
  this.placeholderType = placeholderType ?? this.placeholderType;
  this.selectionIndex = selectionIndex ?? this.selectionIndex;
  this.selectionIndexBuilder =
      selectionIndexBuilder ?? this.selectionIndexBuilder;
  this.index = _selectionIndex;
  this.pager = PageController(initialPage: index);
  this.counter = TextViewController();
  this.notifyCounter = NotifierViewController();
  super.attach(view);
  return this;
}