OgHrefBuilder constructor
OgHrefBuilder(
- Uri url, {
- required MetaInfoRetrivedBuilder onRetrived,
- required MetaInfoFetchFailedBuilder onFetchFailed,
- WidgetBuilder? onLoading,
- VoidCallback? onOpenLinkFailed,
- OpenLinkConfirmation? openLinkConfirmation,
- MultiMetaInfoHandler? multiInfoHandler,
- Key? key,
Create a builder for retriving metadata from url
.
Implementation
OgHrefBuilder(this.url,
{required this.onRetrived,
required this.onFetchFailed,
this.onLoading,
this.onOpenLinkFailed,
this.openLinkConfirmation,
this.multiInfoHandler,
super.key})
: assert(() {
if (runningInTest) {
return MetaFetch.instance is MetaFetchTester;
}
return true;
}(),
"MetaFetch's instance must be MockOgHrefClient or it's extended classes when running in testing environment.");