set<V> method

void set<V>(
  1. String key,
  2. V value
)

Implementation

void set<V>(String key, V value) {
  if (_context.containsKey(_key)) {
    final context = _context[_key]!;
    context[key] = value;
    return;
  }

  throw StateError("Context '$_key' not found");
}