get<V> method

V get<V>(
  1. String key
)

Implementation

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

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