AnyLinkPreview.builder constructor
const
AnyLinkPreview.builder({})
Implementation
const AnyLinkPreview.builder({
super.key,
required this.link,
required this.itemBuilder,
this.cache = const Duration(days: 1),
this.placeholderWidget,
this.errorWidget,
this.proxyUrl,
this.headers,
}) : titleStyle = null,
bodyStyle = null,
displayDirection = UIDirection.uiDirectionVertical,
showMultimedia = true,
backgroundColor = null,
bodyMaxLines = 3,
bodyTextOverflow = TextOverflow.ellipsis,
borderRadius = null,
errorBody = null,
errorImage = null,
errorTitle = null,
boxShadow = null,
removeElevation = false,
onTap = null,
previewHeight = null,
userAgent =
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3',
urlLaunchMode = LaunchMode.platformDefault;