getMeta method
Returns the metadata associated with key.
Implementation
@override
Future<AtMetaData?> getMeta(String key) async {
// The earlier version returns "null" when key is not present in the
// cache map. To preserve the existing behaviour, returning "null"
// when KeyNotFoundException is thrown.
try {
return (await get(key.toLowerCase()))?.metaData;
} on KeyNotFoundException {
return null;
}
}