SearchResult class Null safety

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.
read-only, inherited
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.
read-only, inherited
successful bool
True if the search was successful; false otherwise.
final

Methods

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

Operators

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