SimpleUrlPreview constructor
SimpleUrlPreview({})
Implementation
SimpleUrlPreview({
required this.url,
this.previewHeight = 130.0,
this.isClosable,
this.bgColor,
this.titleStyle,
this.titleLines = 2,
this.descriptionStyle,
this.descriptionLines = 3,
this.siteNameStyle,
this.imageLoaderColor,
this.previewContainerPadding,
this.onTap,
}) : assert(previewHeight >= 130.0,
'The preview height should be greater than or equal to 130'),
assert(titleLines <= 2 && titleLines > 0,
'The title lines should be less than or equal to 2 and not equal to 0'),
assert(descriptionLines <= 3 && descriptionLines > 0,
'The description lines should be less than or equal to 3 and not equal to 0');