modules/flutter_chat_link/flutter_link_previewer library

Classes

LinkPreview
A widget that renders text with highlighted links. Eventually unwraps to the full preview of the first found link if the parsing was successful.
Size
Represents the size object.

Constants

regexEmail → const String
Regex to check if text is email.
Regex to find all links in the text.

Functions

getPreviewData(String text, {String? proxy, Duration? requestTimeout, String? userAgent}) Future<PreviewData>
Parses provided text and returns PreviewData for the first found link.