VerticalLinkPreview constructor

VerticalLinkPreview({
  1. Key? key,
  2. required String url,
  3. required String title,
  4. required String description,
  5. required String imageUri,
  6. required Function onTap,
  7. double? titleFontSize,
  8. double? bodyFontSize,
  9. bool? showTitle,
  10. bool? showBody,
  11. TextOverflow? bodyTextOverflow,
  12. int? bodyMaxLines,
  13. Color? titleTextColor,
  14. Color? bodyTextColor,
  15. double? borderRadius,
})

Implementation

VerticalLinkPreview({
  Key? key,
  required this.url,
  required this.title,
  required this.description,
  required this.imageUri,
  required this.onTap,
  this.titleFontSize,
  this.bodyFontSize,
  this.showTitle,
  this.showBody,
  this.bodyTextOverflow,
  this.bodyMaxLines,
  this.titleTextColor,
  this.bodyTextColor,
  this.borderRadius,
})  : assert(imageUri != null),
      assert(title != null),
      assert(url != null),
      assert(description != null),
      assert(onTap != null),
      super(key: key);