getEtag method
Returns the ETag metadata stored with the cache item identified by key.
Opaque value: Chilkat does not parse or validate the ETag. An application may store any auxiliary string here, although HTTP entity tags are the common use case.
Throws a ChilkatException if the call fails; the details are in ChilkatException.lastErrorText. Throws an ArgumentError if a string argument contains a NUL character.
Implementation
String getEtag(String key) {
final h = _handle;
return using((arena) {
final r = _CkCache_GetEtag(h, _toNative(arena, key, 'key'));
if (r == nullptr) {
throw _fail('getEtag');
}
return r.toDartString();
});
}