GiphyState class

Inheritance

Constructors

GiphyState({required String apiKey, String? selectedAsset, int pageSize = 40, Duration routeDuration = const Duration(milliseconds: 300), GiphyClient? giphyClient, bool connectivity = true, Map<String, double> displayAssets = const {}})
GiphyState.initial(String apiKey)
factory

Properties

apiKey String
Api clinet key
final
box → BoxBase?
Get the box in which this object is stored. Returns null if object has not been added to a box yet.
no setterinherited
connectivity bool
If connected to the internet
final
displayAssets Map<String, double>
Map for all giphy assets
final
giphyClient ↔ GiphyClient?
The current client
getter/setter pair
hasAssetsToDisplay bool
Get _displayAssets.isNotEmpty
no setter
hashCode int
The hash code for this object.
no setterinherited
isInBox bool
Returns whether this object is currently stored in a box.
no setterinherited
key → dynamic
Get the key associated with this object. Returns null if object has not been added to a box yet.
no setterinherited
pageSize int
How many gifs load per page
final
routeDuration Duration
Page duration
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedAsset String?
The current selected asset
final
totalAssetsCount int
Get _totalAssetsCount
no setter

Methods

copyWith(FortState other) → FortState
override
delete() Future<void>
Deletes this object from the box it is stored in.
inherited
initializeGiphyClient(String apiKey) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save() Future<void>
Persists this object.
inherited
toJson() → dynamic
override
toString() String
A string representation of this object.
inherited

Operators

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