PixabayImageProvider class
Class to access pixabay.com http API
Constructors
- PixabayImageProvider({String apiKey, String language })
Properties
- apiKey → String
-
final
- language ↔ String
-
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
downloadMedia(
PixabayMedia media, String res, [ Function callback ]) → Future< BytesBuilder> - Common function to download media pixabay.com does not prefer hotlinking
-
getImages(
String url) → Future -
getVideos(
String url) → Future -
requestImages(
{int resultsPerPage: 30, int page, String category }) → Future< PixabayResponse> - request random images by category
-
requestImagesWithKeyword(
{String keyword, int resultsPerPage: 30, int page, String category }) → Future< PixabayResponse> - pageing is prepared but not used yet request images for a given keyword or search term
-
requestMapByCategory(
{int photoResultsPerCategory, int videoResultsPerCategory, List< String> categories }) → Stream<Map< String, Map< >MediaType, PixabayResponse> > - request random media (images and/or videos) for a list of categories
-
requestMediaWithKeyword(
{MediaType media, String keyword, int resultsPerPage: 30, int page, String category }) → Future< PixabayResponse> - main request method for all kind of media
-
requestVideos(
{int resultsPerPage: 30, int page, String category }) → Future< PixabayResponse> - request random videos
-
requestVideosWithKeyword(
{String keyword, int resultsPerPage: 30, int page, String category }) → Future< PixabayResponse> - pageing is prepared but not used yet request videos for a given keyword or search term
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited