StoryblokClient<StoryContent> constructor

StoryblokClient<StoryContent>({
  1. Region region = Region.eu,
  2. required String accessToken,
  3. ContentVersion? version,
  4. bool useCacheInvalidation = true,
  5. required StoryContent storyContentBuilder(
    1. JSONMap
    ),
})

Implementation

StoryblokClient({
  Region region = Region.eu,
  required String accessToken,
  ContentVersion? version,
  bool useCacheInvalidation = true,
  required StoryContent Function(JSONMap) storyContentBuilder,
})  : _baseParameters = {
        "token": accessToken,
      },
      _version = version,
      _useCacheInvalidation = useCacheInvalidation,
      _storyContentBuilder = storyContentBuilder,
      _region = region;