RequestKey<T> constructor

RequestKey<T>(
  1. String name
)

Creates a request-local key.

Keys use instance identity. Keep one key and reuse that exact instance when storing and reading a value. The name is only for diagnostics.

Implementation

RequestKey(this.name);