attach method
MaterialImageViewController<T>
attach(
- YMRView<
ViewController> view, { - double? frameRatio,
- MIVFrameRatioBuilder? frameBuilder,
- Color? itemBackground,
- double? itemSpace,
- ImageType? itemType,
- List<
T> ? items, - dynamic placeholder,
- ImageType? placeholderType,
override
Implementation
@override
MaterialImageViewController<T> attach(
YMRView<ViewController> view, {
double? frameRatio,
MIVFrameRatioBuilder? frameBuilder,
Color? itemBackground,
double? itemSpace,
ImageType? itemType,
List<T>? items,
dynamic placeholder,
ImageType? placeholderType,
}) {
super.attach(view);
this.frameRatio = frameRatio ?? this.frameRatio;
this.frameRatioBuilder = frameBuilder ?? this.frameRatioBuilder;
this.itemBackground = itemBackground ?? this.itemBackground;
this.spaceBetween = itemSpace ?? this.spaceBetween;
this.imageType = itemType ?? this.imageType;
this.items = items ?? this.items;
this.placeholder = placeholder ?? this.placeholder;
this.placeholderType = placeholderType ?? this.placeholderType;
return this;
}