Skip to content

Instantly share code, notes, and snippets.

@melodysdreamj
Created June 3, 2024 09:32
Show Gist options
  • Save melodysdreamj/46495777be21281688030b3a4582fc67 to your computer and use it in GitHub Desktop.
Save melodysdreamj/46495777be21281688030b3a4582fc67 to your computer and use it in GitHub Desktop.
import 'package:linkpeek/linkpeek.dart';
import 'package:linkpeek/models/linkpeek.model.dart';
LinkPeekModel? linkPeekModel = await LinkPeek.fromUrl('https://youtube.com/shorts/-uNcserCtXE?si=Zgn-beswL-l-A9kx');
print('title: ${linkPeekModel.title}');
print('url: ${linkPeekModel.url}');
print('description: ${linkPeekModel.description}');
print('defaultColor: ${linkPeekModel.defaultColor}');
print('colorScheme: ${linkPeekModel.colorScheme}');
print('domain: ${linkPeekModel.domain}');
print('thumbnail: ${linkPeekModel.thumbnail}');
print('favicon: ${linkPeekModel.webIcon}');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment