includeDimension method
include the dimensions (height and width) of the image in the response. Supported image types: JPG, GIF, PNG, WebP, BMP, TIFF, SVG, and PSD.
var stack = contentstack.Stack(apiKey, deliveryToken, environment);
final asset = stack.asset(asset_uid)..includeDimension('development');
asset.fetch<AssetModel, void>().then((response) {
print(response);
}).catchError((error) {
print(error['error_code']);
});
Implementation
void includeDimension() {
assetParameter['include_dimension'] = 'true';
}