has static method

bool has(
  1. String key
)

Check if custom data exists for the current request

Implementation

static bool has(String key) {
  return ServerContext.current.hasData(key);
}