fromView method
ImageLayoutController<T>
fromView(
- BaseView<
ViewController> view, { - double? frameRatio,
- ImageLayoutFrameRatioBuilder? frameBuilder,
- Color? itemBackground,
- double? itemSpace,
- AndrossyImageType? itemType,
- List<
T> ? items, - dynamic placeholder,
- AndrossyImageType? placeholderType,
override
Implementation
@override
ImageLayoutController<T> fromView(
BaseView<ViewController> view, {
double? frameRatio,
ImageLayoutFrameRatioBuilder? frameBuilder,
Color? itemBackground,
double? itemSpace,
AndrossyImageType? itemType,
List<T>? items,
dynamic placeholder,
AndrossyImageType? 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;
}