youtubeChannelProvider top-level property
Implementation
final youtubeChannelProvider = LinkProvider(_youtubeChannel,
tags: {Tags.socialMedia},
scheme: 'youtube://',
handleExtractor: (uri) {
if (uri.host.contains('youtu') && uri.path.contains('channel')) {
return uri.pathSegments.isEmpty ? null : uri.pathSegments.last;
}
},
webLinkGenerator: (input) =>
"https://www.youtube.com/channel/${input.handle}");