SmartContent class

Represents extracted content from a webpage

Constructors

SmartContent.new({String? title, String? description, String? content, String? author, String? publishDate, List<String> images = const [], List<String> links = const [], List<String> emails = const [], List<String> phoneNumbers = const [], List<String> prices = const [], OpenGraphData? openGraph})
const

Properties

author String?
Author information
final
content String?
Main article/content text
final
description String?
Meta description or excerpt
final
emails List<String>
Email addresses found
final
hashCode int
The hash code for this object.
no setterinherited
images List<String>
All images found on the page
final
All links found on the page
final
openGraph OpenGraphData?
Open Graph data
final
phoneNumbers List<String>
Phone numbers found
final
prices List<String>
Prices found (for e-commerce)
final
publishDate String?
Publication date
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String?
Page title
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited