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