constructInfo method
Constructing MetaInfo from OgHrefBuilder.url.
If OgHrefBuilder.multiInfoHandler provided, it returns the selected result from all metadata protocols uses in MetaFetch.fetchAllFromHttp. Otherwise, it proxies MetaFetch.fetchFromHttp.
Ideally, it should be used for assigning metaInfo to trigger rebuild.
Implementation
@protected
@nonVirtual
Future<MetaInfo> constructInfo() {
if (widget.multiInfoHandler == null) {
return MetaFetch.instance.fetchFromHttp(widget.url);
}
return MetaFetch.instance
.fetchAllFromHttp(widget.url)
.then(widget.multiInfoHandler!);
}