LinkPreview constructor
const
LinkPreview({
- dynamic key,
- Duration? animationDuration,
- String? corsProxy,
- bool? enableAnimation = false,
- String? header,
- TextStyle? headerStyle,
- bool? hideImage,
- Widget imageBuilder()?,
- TextStyle? linkStyle,
- TextStyle? metadataTextStyle,
- TextStyle? metadataTitleStyle,
- void onLinkPressed()?,
- required void onPreviewDataFetched(
- PreviewData
- bool openOnPreviewImageTap = false,
- bool openOnPreviewTitleTap = false,
- EdgeInsets? padding,
- required PreviewData? previewData,
- Duration? requestTimeout,
- required String text,
- TextStyle? textStyle,
- Widget? textWidget,
- String? userAgent,
- 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);