setAttribute method

void setAttribute(
  1. String key,
  2. dynamic value
)

Sets a request-scoped attribute with the given key and value. Store a value value under key.

Implementation

void setAttribute(String key, dynamic value) => _attributes[key] = value;