fromView method

  1. @override
ImageLayoutController<T> fromView(
  1. YMRView<ViewController> view, {
  2. double? frameRatio,
  3. ImageLayoutFrameRatioBuilder? frameBuilder,
  4. Color? itemBackground,
  5. double? itemSpace,
  6. ImageType? itemType,
  7. List<T>? items,
  8. dynamic placeholder,
  9. 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;
}