ContentDetectionResult class
Result of content detection
Constructors
- ContentDetectionResult.new({Element? mainContentElement, required String mainContentHtml, required String mainContentText, required double contentScore, String? title, String? author, DateTime? publishDate, DateTime? modifiedDate, int? readingTimeMinutes})
- Creates a new ContentDetectionResult
- ContentDetectionResult.empty()
-
Creates an empty ContentDetectionResult
factory
Properties
-
The author of the page
final
- contentScore → double
-
The content score (higher is better)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mainContentElement → Element?
-
The main content element
final
- mainContentHtml → String
-
The main content HTML
final
- mainContentText → String
-
The main content text
final
- modifiedDate → DateTime?
-
The last modified date of the page
final
- publishDate → DateTime?
-
The publication date of the page
final
- readingTimeMinutes → int?
-
The estimated reading time in minutes
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String?
-
The title of the page
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited