LinkPreview constructor

const LinkPreview({
  1. Key? key,
  2. Duration? animationDuration,
  3. String? corsProxy,
  4. bool? enableAnimation = false,
  5. String? header,
  6. TextStyle? headerStyle,
  7. bool? hideImage,
  8. Widget imageBuilder(
    1. String
    )?,
  9. TextStyle? linkStyle,
  10. TextStyle? metadataTextStyle,
  11. TextStyle? metadataTitleStyle,
  12. void onLinkPressed(
    1. String
    )?,
  13. required void onPreviewDataFetched(
    1. PreviewData
    ),
  14. bool openOnPreviewImageTap = false,
  15. bool openOnPreviewTitleTap = false,
  16. EdgeInsets? padding,
  17. Widget previewBuilder(
    1. BuildContext,
    2. PreviewData
    )?,
  18. required PreviewData? previewData,
  19. Duration? requestTimeout,
  20. required String text,
  21. TextStyle? textStyle,
  22. Widget? textWidget,
  23. String? userAgent,
  24. required double width,
})

Creates LinkPreview.

Implementation

const LinkPreview({
  super.key,
  this.animationDuration,
  this.corsProxy,
  this.enableAnimation = false,
  this.header,
  this.headerStyle,
  this.hideImage,
  this.imageBuilder,
  this.linkStyle,
  this.metadataTextStyle,
  this.metadataTitleStyle,
  this.onLinkPressed,
  required this.onPreviewDataFetched,
  this.openOnPreviewImageTap = false,
  this.openOnPreviewTitleTap = false,
  this.padding,
  this.previewBuilder,
  required this.previewData,
  this.requestTimeout,
  required this.text,
  this.textStyle,
  this.textWidget,
  this.userAgent,
  required this.width,
});