includeFallback method

void includeFallback()

Retrieve the published content of the fallback locale if an entry is not localized in specified locale.

var stack = contentstack.Stack(apiKey, deliveryToken, environment);
final asset = stack.asset(asset_uid)..includeFallback();
asset.fetch<AssetModel, void>().then((response) {
  print(response);
}).catchError((error) {
  print(error['error_code']);
});

Implementation

void includeFallback() {
  assetParameter['include_fallback'] = 'true';
}