get<T> static method

T? get<T>(
  1. String key
)

Retrieve custom data from the current request

Implementation

static T? get<T>(String key) {
  return ServerContext.current.getData<T>(key);
}