Asset constructor
Asset(- String _uid,
- [HttpClient _client]
)
_uid
assetUid:
Enter the unique ID of the asset of which you wish to retrieve
the details. {Example: asset_uid}
var stack = contentstack.Stack(apiKey, deliveryToken, environment);
final asset = stack.asset(asset_uid);
asset.fetch<AssetModel, void>().then((response) {
print(response);
}).catchError((error) {
print(error['error_code']);
});
Implementation
Asset(this._uid, [this._client]) {
assetParameter['environment'] = _client.stackHeaders['environment'];
_urlPath = '/${_client.stack.apiVersion}/assets';
}