SearchResult class
This class is a container for our search results or for any error message received whilst attempting to fetch the podcast data.
Constructors
-
SearchResult({int resultCount = 0, List<
Item> items = const <Item>[]}) - SearchResult.fromError({String lastError = '', ErrorType lastErrorType = ErrorType.none})
- SearchResult.fromJson({required dynamic json, ResultType type = ResultType.itunes})
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
items
→ List<
Item> -
The list of search results.
final
- lastError → String
-
The last error.
final
- lastErrorType → ErrorType
-
The type of error.
final
- processedTime → DateTime
-
Date & time of search
final
- resultCount → int
-
The number of podcasts found.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- successful → bool
-
True if the search was successful; false otherwise.
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