FeedLink constructor

FeedLink({
  1. FeedId? id,
  2. StringValue? title,
  3. StringValue? subtitle,
  4. StoredImage? image,
  5. bool? imageAsBackground,
  6. FeedColor? titleColor,
  7. FeedColor? backgroundColor,
  8. double? aspectRatio,
})

Implementation

factory FeedLink({
  $0.FeedId? id,
  $2.StringValue? title,
  $2.StringValue? subtitle,
  $3.StoredImage? image,
  $core.bool? imageAsBackground,
  $7.FeedColor? titleColor,
  $7.FeedColor? backgroundColor,
  $core.double? aspectRatio,
}) {
  final result = create();
  if (id != null) result.id = id;
  if (title != null) result.title = title;
  if (subtitle != null) result.subtitle = subtitle;
  if (image != null) result.image = image;
  if (imageAsBackground != null) result.imageAsBackground = imageAsBackground;
  if (titleColor != null) result.titleColor = titleColor;
  if (backgroundColor != null) result.backgroundColor = backgroundColor;
  if (aspectRatio != null) result.aspectRatio = aspectRatio;
  return result;
}