LinkPreview constructor

const LinkPreview({
  1. dynamic 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. required PreviewData? previewData,
  18. Duration? requestTimeout,
  19. required String text,
  20. TextStyle? textStyle,
  21. Widget? textWidget,
  22. String? userAgent,
  23. required double width,
})

Creates LinkPreview.

Implementation

const LinkPreview({
  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,
  required this.previewData,
  this.requestTimeout,
  required this.text,
  this.textStyle,
  this.textWidget,
  this.userAgent,
  required this.width,
}) : super(key : key);