StoryblokClient<StoryContent> class final

Used to fetch content from the Storyblok Content Delivery API

Constructors

StoryblokClient({required String accessToken, ContentVersion? version, bool useCacheInvalidation = true, required StoryContent storyContentBuilder(JSONMap)})

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

getDatasourceEntries({required String datasource, String? dimension, Pagination? pagination}) Future<List<DatasourceEntry>>
getDatasources({Pagination? pagination}) Future<List<Datasource>>
getResolvedStory(String uuid) Story<StoryContent>?
getStories({String? startsWith, String? searchTerm, String? sortBy, Pagination? pagination, List<String>? byFullSlugs, List<String>? excludingFullSlugs, DateTime? publishedAfter, DateTime? publishedBefore, DateTime? firstPublishedAfter, DateTime? firstPublishedBefore, List<int>? inWorkflowStages, String? contentType, int? level, List<String>? resolveRelations, List<String>? excludingIDs, ({bool ordered, List<String> uuids})? byUUIDs, List<String>? withTags, bool? isStartpage, ResolveLinks? resolveLinks, bool resolveLinks2Levels = true, String? fromRelease, String? fallbackLanguage, String? language, List<String>? excludingFields, int? resolveAssets}) Future<List<Story<StoryContent>>>
Retrieve multiple stories
getStory({required StoryIdentifier id, ResolveLinks? resolveLinks, bool resolveLinks2Levels = true, List<String>? resolveRelations, String? fromRelease, String? language, String? fallbackLanguage, int? resolveAssets}) Future<Story<StoryContent>>
Retrieve a single story by id
getTags({String? startsWith}) Future<List<Tag>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetCacheVersion() → void
toString() String
A string representation of this object.
inherited

Operators

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