onPreviewDataFetched property

void Function(PreviewData) onPreviewDataFetched
final

Callback which is called when PreviewData was successfully parsed. Use it to save PreviewData to the state and pass it back to the LinkPreview.previewData so the LinkPreview would not fetch preview data again.

Implementation

final void Function(PreviewData) onPreviewDataFetched;