get<T> method

T get<T>(
  1. String key
)

Returns the stored value that has been associated with the specified key. Will throw if null or no value was registered.

Example:

var foo = req.store.get<Foo>('foo');

Implementation

T get<T>(String key) {
  return tryGet<T>(key) as T;
}