WebPageContent.from constructor

WebPageContent.from({
  1. required Uri? url,
  2. required String? html,
  3. required String title,
  4. TransportableFile? icon,
  5. String? desc,
})

Implementation

WebPageContent.from({required Uri? url, required String? html,
  required String title, TransportableFile? icon, String? desc,})
    : super.fromType(ContentType.PAGE) {
  // URL or HTML
  this.url = url;
  this.html = html;
  // title, icon, description
  this.title = title;
  this.desc = desc;
  this.icon = icon;
}