findLinkPreview function

Future<Response<LinkPreview>> findLinkPreview(
  1. Uri url, {
  2. String service = core.defaultLinkPreviewService,
  3. GetClient? mockedGetClient,
})

Returns link preview information for a given url.

Implementation

Future<core.Response<LinkPreview>> findLinkPreview(
  final Uri url, {
  String service = core.defaultLinkPreviewService,
  core.GetClient? mockedGetClient,
}) async =>
    await _$EmbedService(
      service: service,
      mockedGetClient: mockedGetClient,
    ).findLinkPreview(url);