attach method
ImageViewController
attach(
- YMRView<
ViewController> view, { - bool? cacheMode,
- dynamic image,
- ImageType? imageType,
- dynamic placeholder,
- ImageType? placeholderType,
- BoxFit? scaleType,
override
Implementation
@override
ImageViewController attach(
YMRView<ViewController> view, {
bool? cacheMode,
dynamic image,
ImageType? imageType,
dynamic placeholder,
ImageType? placeholderType,
BoxFit? scaleType,
}) {
super.attach(view);
this.cacheMode = cacheMode ?? this.cacheMode;
this.placeholder = placeholder ?? this.placeholder;
this.scaleType = scaleType ?? this.scaleType;
_image = image ?? _image;
_imageType = imageType ?? _imageType;
_placeholderType = placeholderType ?? _placeholderType;
return this;
}