get<T extends Object> method
T
get<T extends Object>()
Retrieves the object from store.
If the key is not found, DataNotFoundInStoreException is thrown.
Implementation
T get<T extends Object>() {
final key = T;
if (doesNotContain(key)) {
throw ObjectNotFoundInStoreException(key.toString());
}
final object = _objects[key]! as T;
return object;
}