operator []= method

void operator []=(
  1. Request request,
  2. T? value
)

Sets the value for the given request.

Associates the value with the request's token, allowing it to be retrieved later using get or operator [].

Implementation

void operator []=(final Request request, final T? value) =>
    _storage[request.token] = value;