MetaInfo constructor

MetaInfo({
  1. String? title,
  2. Uri? url,
  3. Uri? secureUrl,
  4. String? description,
  5. String? siteName,
  6. List<AudioInfo> audios = const [],
  7. List<ImageInfo> images = const [],
  8. List<VideoInfo> videos = const [],
})

Create rich information link metadata.

If audios, videos and images contains invalid content type in UrlInfo.url, the returned result will not be included.

Implementation

factory MetaInfo(
    {String? title,
    Uri? url,
    Uri? secureUrl,
    String? description,
    String? siteName,
    List<AudioInfo> audios = const [],
    List<ImageInfo> images = const [],
    List<VideoInfo> videos = const []}) {
  return MetaInfo._(
      title,
      url,
      secureUrl,
      description,
      siteName,
      List.unmodifiable(audios),
      List.unmodifiable(images),
      List.unmodifiable(videos));
}