GiphySource class

A source to download all messages in paged requests

Constructors

GiphySource(GiphyClient client, GiphyRequest request, GiphyCollection initialPage)
Creates a new source

Properties

cacheCount int
Retrieves the already loaded matching elements
no setter
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Checks if this source is empty
no setter
isNotEmpty bool
Checks if this source contains at least 1 element
no setter
language String
Retrieves the language
no setter
nextCursor int?
the next cursor
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalCount int?
Provides the total length of matching elements
final
type GiphyType
Retrieves the type in this source
no setter

Methods

hasElementAt(int index) bool
Does this source contain an element at the given position?
load(int index) Future<GiphyGif>
Loads the element with the given index
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
operator [](int index) GiphyGif?
Retrieves the gif with the given index from the cache, if already present