ScrapeResult class

Data model representing the result of a web scraping operation

Constructors

ScrapeResult.new({required List<String> data, required String url, required DateTime timestamp, required ScrapeType type, String? error, required bool isSuccess})
ScrapeResult.failure({required String url, required String error, required ScrapeType type})
factory
ScrapeResult.success({required List<String> data, required String url, required ScrapeType type})
factory

Properties

data List<String>
final
error String?
final
hashCode int
The hash code for this object.
no setterinherited
isSuccess bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp DateTime
final
type ScrapeType
final
url String
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