attach method
AvatarViewController
attach(
- YMRView<
ViewController> view, { - String? url,
- dynamic placeholder,
- double? size,
- bool? cacheMode,
- bool? circular,
- BoxFit? scaleType,
- double? borderSize,
- double? borderPadding,
- bool? borderOverlay,
- Color? borderOverlayColor,
- double? borderOverlaySize,
override
Implementation
@override
AvatarViewController attach(
YMRView<ViewController> view, {
String? url,
dynamic placeholder,
double? size,
bool? cacheMode,
bool? circular,
BoxFit? scaleType,
double? borderSize,
double? borderPadding,
bool? borderOverlay,
Color? borderOverlayColor,
double? borderOverlaySize,
}) {
super.attach(view);
this.url = url ?? this.url;
this.placeholder = placeholder ?? this.placeholder;
this.size = size ?? this.size;
this.cacheMode = cacheMode ?? this.cacheMode;
this.circular = circular ?? this.circular;
this.scaleType = scaleType ?? this.scaleType;
this.borderSize = borderSize ?? this.borderSize;
this.borderOverlay = borderOverlay ?? this.borderOverlay;
this.borderOverlayColor = borderOverlayColor ?? this.borderOverlayColor;
this.borderOverlaySize = borderOverlaySize ?? this.borderOverlaySize;
return this;
}