SearchResults<T extends ModelBase> class

Results returned from a search request.

Inheritance

Constructors

SearchResults({Map<String, dynamic>? source, required int total, required int totalPages, required List<T> results})
const
SearchResults.fromJson(Map<String, dynamic> json, T mapResult(Map<String, dynamic>))
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
results List<T>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source Map<String, dynamic>?
The raw JSON response from the API which was used to construct this object.
finalinherited
total int
final
totalPages int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns the json representation of this model in the unsplash api.
override
toString() String
A string representation of this object.
inherited

Operators

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