ContentfulDeliveryAPIRepository class

Constructors

ContentfulDeliveryAPIRepository({required ContentfulClient client, String baseUrl = 'https://cdn.contentful.com'})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAssetUrlFromSys({required Sys sys, required Includes? includes}) String?
getDataFrom({required Content content, Includes? includes}) → Either<List<Content>, String?>?
getEntries<T>({required T fromJsonT(Object?), String? contentType, Map<String, dynamic>? query}) Future<ContentfulDeliveryDataModel<T>>
Fetch and parse the given type of Contentful model. Parses the language to utf8. Throws Exception on error.
getEntryFrom<T>({required T fromJsonT(Object?), required String entryID, String? envId}) Future<Entry<T>?>
Fetch and parse the given type of Data Entry. Parses the language to utf8. Throws Exception on error.
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