attach method
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,
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;
}