SearchPhoto class
This endpoint enables you to search Pexels for any topic that you would like. For example your query could be something broad like Nature, Tigers, People. Or it could be something specific like Group of people working.
Constructors
-
SearchPhoto({required int? page, required int? perPage, required List<
Photo> ? photos, required int? totalResults, required String? nextPage, required String? prevPage}) - Named ConstructorsSearchPhoto with require params
-
SearchPhoto.fromJson(Map<
String, dynamic> json) -
SearchPhoto.fromJson Mapping data to SearchPhoto
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- nextPage ↔ String?
-
URL for the next page of results, if applicable.
getter/setter pair
- page ↔ int?
-
The current page number.
getter/setter pair
- perPage ↔ int?
-
The number of results returned with each page.
getter/setter pair
-
photos
↔ List<
Photo> ? -
An array of Photo objects.
getter/setter pair
- prevPage ↔ String?
-
URL for the previous page of results, if applicable.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalResults ↔ int?
-
The total number of results for the request.
getter/setter pair
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