fromWebPage static method
static method to create and return WebPage. It takes url of web page as
an argument. Additionally, you can provide deepCrawl argument. If
deepCrawl set to true. It will crawl the whole website of the shared
url and index all of the pages in it.
Example:
final webUrl = 'https://sampleurl.com';
final webPageObject = WebDataObject.fromWebPage(webUrl, deepCrawl = false);
Implementation
static WebPage fromWebPage(String url, {bool deepCrawl = false}) {
return WebPage(url, deepCrawl: deepCrawl);
}